/* Shared auth-screen styles (Sign in, Two-factor, Recovery code, …).
   Scoped under .stage; uses the global awbguru theme tokens. Rules only match
   on auth pages that render a .stage container, so this is inert elsewhere. */
.stage { position: relative; min-height: 100vh; display: grid; place-items: center;
    padding: 48px 24px; overflow: hidden; }
.stage::before, .stage::after { content: ""; position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: .5; pointer-events: none; z-index: 0; }
.stage::before { width: 460px; height: 460px; background: var(--glow-b, rgba(63,124,240,.28)); top: -160px; left: -120px; }
.stage::after { width: 420px; height: 420px; background: var(--glow-g, rgba(142,210,78,.34)); bottom: -180px; right: -120px; }

.stage .auth { position: relative; z-index: 1; width: 100%; max-width: 440px; }
.stage .auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.stage .brand-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--grad);
    display: grid; place-items: center; box-shadow: 0 10px 26px -10px var(--glow-b), 0 10px 26px -10px var(--glow-g); }
.stage .brand-mark svg { width: 27px; height: 27px; }
.stage .brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: 14px; }
.stage .brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }

.stage .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 30px 28px; }
.stage .card-title { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.stage .card-note { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.stage .banner { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 4px; padding: 11px 13px;
    background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; }
.stage .banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: var(--warn); }
.stage .banner-body { font-size: 13px; color: #6b5410; }
.stage .banner-body b { font-weight: 600; color: #5a4708; }
.stage .banner-body span { display: block; font-size: 12px; color: #7a6224; margin-top: 1px; }

.stage .form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.stage .field { display: flex; flex-direction: column; gap: 7px; }
.stage .label { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em;
    text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; align-items: baseline; }
.stage .link { font-family: var(--mono); font-size: 10px; color: var(--c-blue); font-weight: 500; text-transform: none; }
.stage .link:hover { text-decoration: underline; }
.stage .input-wrap { position: relative; }
.stage .input { width: 100%; height: 44px; padding: 0 14px; background: var(--surface2); color: var(--fg);
    font-size: 14.5px; border: 1px solid var(--line); border-radius: 10px; transition: background .15s, box-shadow .15s, border-color .15s; }
.stage .input::placeholder { color: var(--faint); }
.stage .input:hover { border-color: var(--line2); }
.stage .input:focus-visible { outline: none; background: var(--surface); border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(63,124,240,.16); }
.stage .input.code { font-family: var(--mono); font-size: 17px; letter-spacing: .32em; text-align: center; }
.stage .input.has-toggle { padding-right: 58px; }
.stage .toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none;
    cursor: pointer; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 7px; border-radius: 6px; }
.stage .toggle:hover { color: var(--fg); background: var(--surface3); }
.stage .fld-err { color: var(--warn); font-size: 11.5px; }

.stage .remember { display: flex; align-items: center; gap: 9px; margin-top: 2px; cursor: pointer; user-select: none; }
.stage .remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.stage .box { width: 17px; height: 17px; border-radius: 5px; flex: none; background: var(--surface2);
    border: 1px solid var(--line2); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.stage .box svg { width: 11px; height: 11px; stroke: #0e1e07; opacity: 0; transition: opacity .12s; }
.stage .remember input:checked + .box { background: var(--grad); border-color: transparent; }
.stage .remember input:checked + .box svg { opacity: 1; }
.stage .remember-label { font-size: 13px; color: var(--muted); }

.stage .btn { height: 46px; width: 100%; padding: 0 16px; border-radius: 10px; font-family: var(--sans);
    font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; border: none; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s; text-decoration: none; }
.stage .btn-primary { background: var(--grad); color: #0e1e07; box-shadow: 0 2px 12px -4px var(--glow-b), 0 2px 12px -4px var(--glow-g); margin-top: 4px; }
.stage .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px var(--glow-b), 0 10px 26px -8px var(--glow-g); }
.stage .btn-ghost { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; }
.stage .btn-ghost:hover { background: var(--surface2); }
.stage .btn-ghost svg { width: 18px; height: 18px; flex: none; }

.stage .divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; }
.stage .divider::before, .stage .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stage .divider span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stage .sso { display: flex; flex-direction: column; gap: 10px; }

.stage .auth-foot { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.stage .auth-foot a { color: var(--c-blue); font-weight: 600; }
.stage .auth-foot a:hover { text-decoration: underline; }
.stage .legal { margin-top: 26px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 12px; }
.stage .legal a { color: inherit; text-decoration: none; }
.stage .legal a:hover { color: var(--dim); }
.stage .legal .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

@media (max-width: 480px) { .stage { padding: 32px 18px; } .stage .card { padding: 26px 20px 24px; } .stage .card-title { font-size: 24px; } }
