.auth-page {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  overflow: hidden;
  background: #fff;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  justify-content: flex-start;
  padding: clamp(52px, 7vh, 92px) clamp(42px, 7vw, 118px) 46vh;
  overflow: hidden;
  color: #17233b;
  background: #fffafa;
}

.auth-brand::before {
  content: "KLINIK SAFWA";
  position: absolute;
  top: clamp(82px, 10vh, 122px);
  left: clamp(132px, 13vw, 218px);
  z-index: 2;
  color: #102a4c;
  font-size: clamp(16px, 1.35vw, 24px);
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.auth-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: -3vw;
  bottom: -1px;
  height: min(52vh, 540px);
  z-index: -1;
  background: url("/go-slim-wellness-v2.png") left bottom / contain no-repeat;
  pointer-events: none;
}

.auth-brand .auth-logo {
  width: clamp(78px, 7vw, 106px);
  height: clamp(68px, 6vw, 92px);
  margin: 0 0 18px;
  object-fit: cover;
  object-position: center 64%;
  filter: none;
}

.auth-brand strong {
  color: #c91d5c;
  font-size: clamp(52px, 5.2vw, 82px);
  line-height: 1;
  letter-spacing: -.035em;
}

.auth-brand p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #102a4c;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.55;
}

.auth-card {
  width: min(590px, calc(100% - 72px));
  margin: auto;
  padding: clamp(42px, 6vh, 76px) clamp(38px, 5vw, 70px);
  gap: 19px;
  border: 1px solid #f2e9ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(119, 53, 83, .13);
}

.auth-card > svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: #c91d5c;
}

.auth-card h2 {
  color: #102a4c;
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.auth-card > p {
  margin-bottom: 8px;
  color: #57677c;
  font-size: 16px;
  line-height: 1.55;
}

.auth-card .field {
  position: relative;
  gap: 9px;
  color: #102a4c;
  font-size: 14px;
}

.auth-card .field input {
  min-height: 58px;
  padding: 15px 17px;
  border: 1px solid #ccd5df;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

.auth-card .field:has(input[type="password"]),
.auth-card .field:has(.password-toggle) {
  padding-bottom: 0;
}

.auth-card .field:has(.password-toggle) input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  bottom: 11px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8797;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.auth-card .primary {
  min-height: 58px;
  margin-top: 4px;
  border-radius: 10px;
  background: #c91d5c;
  border-color: #c91d5c;
  font-size: 16px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-card .primary:hover {
  transform: translateY(-1px);
  background: #b81752;
  box-shadow: 0 10px 24px rgba(201, 29, 92, .22);
}

.auth-card a {
  margin-top: 7px;
  color: #c91d5c;
  font-size: 16px;
}

@media (max-width: 1050px) {
  .auth-page { grid-template-columns: minmax(0, .9fr) minmax(450px, 1.1fr); }
  .auth-brand { padding-inline: 44px; }
  .auth-brand::before { left: 132px; }
  .auth-card { width: min(540px, calc(100% - 44px)); padding-inline: 42px; }
}

@media (max-width: 820px) {
  .auth-page {
    display: block;
    overflow: visible;
    background: #fffafa;
  }
  .auth-brand {
    min-height: 410px;
    padding: 36px 28px 225px;
  }
  .auth-brand::before {
    top: 61px;
    left: 110px;
    font-size: 16px;
  }
  .auth-brand::after {
    right: 0;
    height: 245px;
    background-position: center bottom;
  }
  .auth-brand .auth-logo { width: 70px; height: 62px; margin-bottom: 12px; }
  .auth-brand strong { font-size: 48px; }
  .auth-brand p { margin-top: 12px; font-size: 15px; }
  .auth-card {
    width: min(560px, calc(100% - 28px));
    margin: -22px auto 36px;
    padding: 36px 28px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .auth-brand { min-height: 360px; padding-inline: 22px; padding-bottom: 200px; }
  .auth-brand::after { height: 205px; }
  .auth-brand::before { top: 57px; left: 96px; font-size: 14px; }
  .auth-brand .auth-logo { width: 62px; height: 56px; }
  .auth-brand strong { font-size: 42px; }
  .auth-card { width: calc(100% - 20px); padding: 30px 20px; gap: 16px; }
  .auth-card h2 { font-size: 30px; }
  .auth-card > p, .auth-card a { font-size: 14px; }
  #language-switcher { top: 9px; right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card .primary { transition: none; }
}
