/* Pre-login pages (login, device authorization, password reset, signup).
   Only these pages load this file, and with it the entry/onboarding styles. */
@import url("../onboarding.css");

/* Forms wrap the card's fields without breaking the card's own flex gap. */
.auth-card form { display: contents; }

/* Keep the signup action anchored while the password guidance appears/disappears.
   The rules keep their layout space and only change visibility. */
.auth-card .pw-rules.pw-rules--lazy {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.auth-card .field:focus-within .pw-rules.pw-rules--lazy,
.auth-card .pw-rules.pw-rules--lazy.is-shown {
  visibility: visible;
  opacity: 1;
}

/* Replaces the inline styles in auth.html. */
.auth-top .select { margin-left: auto; }
/* "v1" beside the language picker on the v2 login: back to the legacy page. */
.auth-top .auth-ui-switch { margin-left: auto; padding: 3px 8px; border: 1px solid var(--secondary-200); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--secondary-500); text-decoration: none; }
.auth-top .auth-ui-switch:hover { color: var(--secondary-800); border-color: var(--secondary-400); }
.auth-top .auth-ui-switch + .select { margin-left: 0; }
.auth-row.check-lbl { justify-content: flex-start; align-items: flex-start; color: var(--secondary-600); cursor: pointer; }
.auth-row.check-lbl .check { margin-top: 1px; }
.auth-row.check-lbl small { display: block; margin-top: 2px; font-size: 12px; color: var(--secondary-600); }
.done-ring--warning { background: var(--warning-soft); color: var(--warning-text); }

.auth-card .btn--google svg { width: 18px; height: 18px; }
.auth-card .btn:disabled { opacity: .75; cursor: default; }
.auth-card .btn--primary .loader-dot { border-color: rgba(255,255,255,.35); border-top-color: var(--white-pure); }
.auth-alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.code-boxes.is-invalid input { border-color: var(--ink-danger); }
.auth-card .lead b { color: var(--secondary-900); font-weight: 600; overflow-wrap: anywhere; }
.method-list .radio-item b { overflow-wrap: anywhere; }
.auth-legal a { font-weight: 600; }
.auth--split .field .auth-row > label { font-size: 13px; font-weight: 600; color: var(--secondary-700); }

/* Referral link under the login card (legacy login's refer-banner, in card width). */
.auth-refer { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--secondary-900); color: var(--white-pure); text-decoration: none; box-shadow: var(--shadow-card); }
.auth-refer-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--verde); color: var(--secondary-900); }
.auth-refer-icon svg { width: 18px; height: 18px; }
.auth-refer-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.auth-refer-text b { color: var(--verde); white-space: nowrap; }
.auth-refer-cta { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--verde); color: var(--secondary-900); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: gap var(--duration-fast) var(--ease-out); }
.auth-refer-cta svg { width: 13px; height: 13px; }
.auth-refer:hover .auth-refer-cta { gap: 8px; }
.auth-refer:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }
@media (max-width: 420px) { .auth-refer-icon { display: none; } }
