/* A quiet choice of sign-in methods, followed by the requested email form. */
.auth-modal { max-width: 28rem; }
.auth-modal::backdrop {
  background: rgba(6, 10, 11, .2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.auth-modal .modal-panel {
  padding: 40px 40px 28px;
  border: 0;
  border-radius: 28px;
  background: rgba(44, 51, 52, .32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(32px) saturate(108%);
  backdrop-filter: blur(32px) saturate(108%);
}
.auth-header { display: flex; align-items: center; gap: 12px; margin: 0 24px 32px 0; }
.auth-mark { display: block; flex: none; width: 36px; height: 36px; opacity: .85; }
.auth-modal h2 {
  margin: 0 24px 32px 0;
  color: #eeeae3;
  font: 300 38px/1.2 var(--font-brand);
  text-align: left;
  letter-spacing: -.02em;
}
.auth-modal .auth-header h2 { margin: 0; }
.auth-modal .modal-panel > button[aria-label] {
  top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: #a9b7b3; background: transparent;
}
.auth-modal .modal-panel > button[aria-label]:hover { color: #edf4ef; background: rgba(226, 239, 233, .05); }
.auth-modal .modal-panel > button[aria-label] svg { width: 18px; height: 18px; }
.auth-social { display: grid; gap: 12px; }
.auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 14px 20px;
  border: 0; border-radius: 16px;
  background: rgba(224, 235, 232, .09); color: #edf4ef;
  box-shadow: none;
  font: 500 15px/1.45 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease;
}
.auth-provider:hover { background: rgba(214, 233, 226, .14); }
.auth-provider svg { flex: none; width: 19px; height: 19px; margin: 0; }
.auth-email { margin-top: 12px; }
.auth-email summary {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; color: #b8ccc5; cursor: pointer; list-style: none;
  font: 400 14px/1.5 var(--font-body);
}
.auth-email summary::-webkit-details-marker { display: none; }
.auth-email summary:hover { color: #edf4ef; }
.auth-email summary span { display: flex; align-items: center; justify-content: center; gap: 12px; }
.auth-email summary svg { width: 19px; height: 19px; }
.auth-email summary .auth-email-back { display: none; }
.auth-email[open] { margin-top: -12px; }
.auth-email[open] summary { justify-content: flex-start; padding: 0; margin-bottom: 12px; }
.auth-email[open] summary .auth-email-back { display: flex; }
.auth-email[open] summary .auth-email-label { display: none; }
.auth-email:has(form[data-signup-step]:not([data-signup-step="email"])) > summary { display: none; }
.auth-modal:has(.auth-email[open]) :is(.auth-social, .auth-social-consent) { display: none; }
.auth-modal:has(.auth-email[open]) .auth-mark { display: none; }
.auth-form { display: grid; gap: 16px; }
.auth-form fieldset { display: grid; gap: 16px; min-width: 0; padding: 0; margin: 0; border: 0; }
.auth-form fieldset[hidden], .auth-email-review[hidden] { display: none; }
.auth-email-review { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0; color: #b8ccc5; text-align: left; font-size: 14px; }
.auth-email-review svg { width: 18px; height: 18px; flex: none; }
.auth-email-review span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-password { position: relative; }
#signupModal .auth-password input { padding-right: 52px; }
.auth-password-toggle { position: absolute; top: 1px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #a6b4ae; }
.auth-password-toggle:hover { color: #edf4ef; }
.auth-password-toggle svg { width: 20px; height: 20px; }
.auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-modal label { color: #becbc6; font-size: 13px; font-weight: 400; }
.auth-modal input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid rgba(213, 233, 224, .14); border-radius: 10px;
  background: rgba(10, 17, 18, .24); color: #edf4ef;
  font: 400 16px/1.4 var(--font-body); outline: none;
}
.auth-modal input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #91b9ac; box-shadow: 0 0 0 3px rgba(145, 185, 172, .12);
}
.auth-modal input::placeholder { color: #83968f; font-size: 13px; }
.auth-modal input[type="checkbox"] { accent-color: #467e70; flex: none; }
.auth-modal .auth-form label:has(input[type="checkbox"]) { min-height: 44px; align-items: center; }
.auth-modal .btn-primary {
  min-height: 46px; border: 0; border-radius: 12px;
  background: rgba(92, 137, 124, .42);
  color: #edf4ef; font-size: 14px; font-weight: 500;
  box-shadow: none;
}
.auth-modal .btn-primary:hover:not(:disabled) { background-color: rgba(105, 152, 139, .5); }
.auth-modal .btn-primary:disabled { opacity: .5; cursor: wait; }
.auth-modal .auth-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.65; color: #a6b4ae; text-align: left; }
.auth-modal :is(.text-teal-400, .text-teal-300), .auth-text-link, .auth-switch button { color: #bfd9ce; }
.auth-modal :is(.text-teal-400, .text-teal-300):hover, .auth-text-link:hover, .auth-switch button:hover { color: #eef7f1; }
.auth-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; text-align: left; color: #a6b4ae; font-size: 14px; }
.auth-switch button { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0; }
.auth-switch button svg { width: 14px; height: 14px; }
.auth-field-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; min-height: 44px; margin: -8px 0 4px; }
.auth-forgot { min-height: 44px; margin-left: auto; padding: 0; font-size: 12px; text-align: right; }
.auth-message:not(.hidden) { margin: 0 0 18px; font-size: 13px; line-height: 1.5; }
.auth-modal :is(button, a, summary):focus-visible { outline: 2px solid #91b9ac; outline-offset: 3px; border-radius: 6px; }
.auth-modal :is(.auth-switch button, .auth-text-link, summary):focus-visible { outline: none; text-decoration: underline; text-underline-offset: 5px; }
.auth-modal :is(#passwordStrength, #password-requirements, #password-match-error, #signup-email-error, #signup-username-error) { line-height: 1.55; }
@media (max-width: 479px) {
  .auth-modal .modal-panel { padding: 32px 24px 24px; }
  .auth-modal h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .auth-provider { transition: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-modal .modal-panel { background: #1a2424; }
}
