/* OEM ASTRA J authentication — unified White + Blue */
.auth-overlay {
  background: rgba(5, 22, 51, .48);
  backdrop-filter: blur(8px);
}

#authModal.auth-modal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 860px);
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 20px;
  color: #0b1f44;
  box-shadow: 0 28px 80px rgba(7, 36, 79, .22);
}

#authModal .auth-modal-header {
  padding: 22px 24px 0;
  background: #fff;
}

#authModal .auth-modal-header h2 {
  margin: 0;
  color: #0b1f44;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.01em;
}

#authModal .auth-close {
  width: 34px;
  height: 34px;
  color: #24446f;
  background: #f2f6fc;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  box-shadow: none;
}

#authModal .auth-close:hover {
  color: #063f95;
  background: #eaf2ff;
  border-color: #b9ccea;
}

#authModal .auth-close svg {
  stroke: currentColor;
}

#authModal .auth-tabs {
  gap: 8px;
  padding: 17px 24px 0;
  background: #fff;
  border-bottom: 1px solid #e4ebf4;
}

#authModal .auth-tab {
  min-height: 42px;
  margin-bottom: -1px;
  padding: 10px 12px;
  color: #697992;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  font-weight: 750;
}

#authModal .auth-tab:hover {
  color: #073b91;
  background: #f5f8fd;
}

#authModal .auth-tab.active {
  color: #073b91;
  background: #eef4ff;
  border-bottom-color: #0754b8;
}

#authModal .auth-form {
  gap: 15px;
  padding: 24px;
  background: #fff;
  overflow-y: auto;
  min-height: 0;
}

#authModal .auth-field {
  gap: 7px;
}

#authModal .auth-field label {
  color: #263a5e;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

#authModal .auth-field input {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  color: #0b1f44;
  caret-color: #0754b8;
  background: #fff;
  border: 1px solid #ccd8e9;
  border-radius: 11px;
  box-shadow: none;
}

#authModal .auth-field input:hover {
  border-color: #a9bddd;
}

#authModal .auth-field input:focus {
  background: #fff;
  border-color: #0754b8;
  box-shadow: 0 0 0 3px rgba(7, 84, 184, .1);
}

#authModal .auth-field input::placeholder {
  color: #98a5b8;
}

#authModal .auth-submit {
  min-height: 48px;
  margin-top: 5px;
  color: #fff;
  background: linear-gradient(135deg, #0754b8, #052f78);
  border: 1px solid #0754b8;
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(7, 59, 145, .2);
}

#authModal .auth-submit:hover {
  background: linear-gradient(135deg, #0962cf, #073b91);
  box-shadow: 0 11px 25px rgba(7, 59, 145, .25);
}

#authModal .auth-submit:focus-visible,
#authModal .auth-wa-btn:focus-visible,
#authModal .auth-tab:focus-visible,
#authModal .auth-close:focus-visible,
#authModal .auth-footer-text button:focus-visible,
#authModal .auth-text-btn:focus-visible {
  outline: 3px solid rgba(7, 84, 184, .22);
  outline-offset: 2px;
}

#authModal .auth-divider {
  color: #8b98aa;
}

#authModal .auth-divider::before,
#authModal .auth-divider::after {
  background: #e1e8f2;
}

#authModal .auth-wa-btn {
  min-height: 47px;
  color: #128845;
  background: #eefbf4;
  border: 1px solid #bce8ce;
  border-radius: 11px;
}

#authModal .auth-wa-btn:hover {
  color: #08763a;
  background: #e3f8ec;
  border-color: #9eddb7;
}

#authModal .auth-footer-text {
  margin: 0;
  color: #697992;
}

#authModal .auth-footer-text button {
  color: #0754b8;
  font-weight: 800;
}

#authModal .auth-footer-text button:hover {
  color: #052f78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  #authModal.auth-modal {
    background: #fff !important;
    border: 1px solid #dbe5f2 !important;
    border-bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -18px 50px rgba(7, 36, 79, .2);
  }

  #authModal .auth-modal-header {
    padding: 18px 18px 0 !important;
  }

  #authModal .auth-tabs {
    padding: 13px 18px 0 !important;
  }

  #authModal .auth-form {
    padding: 20px 18px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #authModal .auth-field input {
    min-height: 50px;
    font-size: 16px !important;
  }

  #authModal .auth-submit,
  #authModal .auth-wa-btn {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  #authModal .auth-modal-header h2 {
    font-size: 18px;
  }

  #authModal .auth-form {
    gap: 13px;
  }
}

#authModal [hidden] {
  display: none !important;
}

#authModal .auth-otp-hint {
  margin: 0;
  color: #5b6b82;
  font-size: 13px;
  line-height: 1.55;
}

#authModal #regOtp {
  letter-spacing: .42em;
  font-size: 22px;
  font-weight: 750;
  text-align: center;
}

#authModal .auth-text-btn {
  min-height: 40px;
  padding: 0;
  color: #0754b8;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#authModal .auth-text-btn:disabled,
#authModal .auth-submit:disabled,
#authModal .auth-google-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#authModal .auth-subtitle {
  margin: 0;
  color: #5b6b82;
  font-size: 13px;
  line-height: 1.5;
}

#authModal .auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: #0b1f44;
  background: #fff;
  border: 1px solid #ccd8e9;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  font-family: inherit;
}

#authModal .auth-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#authModal .auth-soon-badge {
  margin-inline-start: 4px;
  padding: 2px 8px;
  color: #0754b8;
  background: #eef4ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

#authModal .auth-method-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f2f6fc;
  border: 1px solid #dce6f3;
  border-radius: 12px;
}

#authModal .auth-method-tab {
  flex: 1;
  min-height: 40px;
  padding: 8px 6px;
  color: #697992;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
}

#authModal .auth-method-tab:hover {
  color: #073b91;
}

#authModal .auth-method-tab.active {
  color: #073b91;
  background: #fff;
  box-shadow: 0 1px 3px rgba(7, 36, 79, .08);
}

#authModal .auth-method-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#authModal .auth-coming-soon,
#authModal .auth-guest-copy,
#authModal .auth-field-hint,
#authModal .auth-secure-note {
  margin: 0;
  color: #5b6b82;
  font-size: 13px;
  line-height: 1.5;
}

#authModal .auth-secure-note {
  text-align: center;
  font-size: 12px;
}

#authModal .auth-phone-row,
#authModal .auth-pass-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ccd8e9;
  border-radius: 11px;
  background: #fff;
}

#authModal .auth-phone-row:focus-within,
#authModal .auth-pass-row:focus-within {
  border-color: #0754b8;
  box-shadow: 0 0 0 3px rgba(7, 84, 184, .1);
}

#authModal .auth-phone-prefix {
  flex-shrink: 0;
  padding: 0 12px;
  color: #263a5e;
  border-inline-end: 1px solid #e4ebf4;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

#authModal .auth-phone-row input,
#authModal .auth-pass-row input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 11px;
}

#authModal .auth-pass-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: #697992;
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

#authModal .auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #263a5e;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

#authModal .auth-agree input {
  margin-top: 2px;
  accent-color: #0754b8;
}

#authModal .auth-agree a {
  color: #0754b8;
  font-weight: 750;
}