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

#authModal.auth-modal {
  overflow: hidden;
  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;
}

#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 {
  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;
  }
}