:root{--auth-red:#a3131a;--auth-red-dark:#7d0e14;--auth-ink:#1e293b;--auth-muted:#64748b;--auth-line:#dce3e9;--auth-focus:#c4212a}
.auth-page [hidden]{display:none!important}
.auth-page{min-width:320px;background:#fbf8f6;color:var(--auth-ink)}
.auth-page .auth-shell{position:relative;isolation:isolate;min-height:100svh;padding:clamp(1rem,4vw,3rem);background:radial-gradient(circle at 12% 12%,rgba(163,19,26,.08),transparent 30rem),radial-gradient(circle at 88% 90%,rgba(236,170,146,.16),transparent 28rem),linear-gradient(145deg,#fff 0%,#fbf8f6 55%,#f7f1ee 100%);overflow:hidden}
.auth-page .auth-shell::before,.auth-page .auth-shell::after{content:"";position:absolute;z-index:-1;border:1px solid rgba(163,19,26,.08);border-radius:50%;width:20rem;height:20rem}.auth-page .auth-shell::before{top:-12rem;right:-7rem}.auth-page .auth-shell::after{bottom:-14rem;left:-8rem;width:27rem;height:27rem}
.auth-page .auth-card{width:min(100%,30rem);padding:clamp(1.5rem,5vw,2.5rem);border:1px solid rgba(218,224,230,.9);border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 24px 60px rgba(40,28,29,.1),0 2px 8px rgba(40,28,29,.04);backdrop-filter:blur(12px)}.auth-page .auth-card-wide{width:min(100%,32rem)}
.auth-header{margin-bottom:1.75rem}.auth-page .auth-brand{display:flex;align-items:center;gap:.75rem;width:max-content;max-width:100%;color:var(--auth-ink);font-size:1.05rem;line-height:1.2;letter-spacing:-.01em}.auth-brand small{display:block;margin-top:.2rem;color:var(--auth-muted);font-size:.69rem;font-weight:600;letter-spacing:.025em}.auth-brand-mark{display:grid;place-items:center;flex:0 0 2.65rem;width:2.65rem;height:2.65rem;border-radius:13px;background:linear-gradient(145deg,var(--auth-red),#c72d34);box-shadow:0 8px 18px rgba(163,19,26,.22)}.auth-brand-mark svg{width:1.45rem;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-kicker{display:flex;align-items:center;gap:.45rem;margin:2rem 0 .65rem;color:var(--auth-red-dark);font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.auth-kicker span{width:1.2rem;height:2px;background:var(--auth-red);border-radius:2px}.auth-header h1{margin:0;color:#192231;font-size:clamp(1.75rem,6vw,2.2rem);line-height:1.15;letter-spacing:-.035em}.auth-header>p{margin:.65rem 0 0;color:var(--auth-muted);font-size:.94rem;line-height:1.65}
.auth-form{display:grid;gap:1.2rem}.auth-field{display:grid;gap:.45rem}.auth-field label{color:#293548;font-size:.85rem;font-weight:750}.label-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.label-row a{color:var(--auth-red-dark);font-size:.8rem;font-weight:700;text-decoration:none}.label-row a:hover{text-decoration:underline}
.input-frame{position:relative}.input-frame>svg{position:absolute;left:.9rem;top:50%;width:1.1rem;transform:translateY(-50%);fill:none;stroke:#8190a3;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.auth-page .input-frame input{height:3.15rem;padding:.75rem 1rem .75rem 2.75rem;border:1px solid var(--auth-line);border-radius:12px;background:#fcfdfd;color:var(--auth-ink);font:inherit;outline:none;transition:border-color .16s,box-shadow .16s,background .16s}.auth-page .input-frame input::placeholder{color:#9aa6b5}.auth-page .input-frame input:hover{border-color:#bbc6d0}.auth-page .input-frame input:focus{border-color:var(--auth-focus);background:#fff;box-shadow:0 0 0 4px rgba(163,19,26,.11)}
.auth-page .password-field input{padding-right:3.25rem}.auth-page .password-toggle{right:.55rem;display:grid;place-items:center;width:2.1rem;height:2.1rem;padding:0;border-radius:8px;color:#5f6f82}.password-toggle:hover{background:#f5e9e9;color:var(--auth-red-dark)}.password-toggle:focus-visible,.auth-page a:focus-visible,.auth-page button:focus-visible{outline:3px solid rgba(196,33,42,.28);outline-offset:2px}.password-toggle svg{width:1.18rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-closed,.password-toggle[aria-pressed=true] .eye-open{display:none}.password-toggle[aria-pressed=true] .eye-closed{display:block}
.auth-page .auth-submit{width:100%;min-height:3.15rem;margin-top:.25rem;border-radius:12px;background:linear-gradient(135deg,var(--auth-red),#bb2028);box-shadow:0 10px 20px rgba(163,19,26,.18);font-size:.92rem;transition:transform .16s,box-shadow .16s,background .16s}.auth-page .auth-submit:hover:not(:disabled){background:linear-gradient(135deg,var(--auth-red-dark),var(--auth-red));box-shadow:0 12px 24px rgba(163,19,26,.24);transform:translateY(-1px)}.auth-page .auth-submit:active:not(:disabled){transform:translateY(0)}.auth-page .auth-submit:disabled{opacity:.62;box-shadow:none}
.auth-page .auth-message{min-height:1.45rem;margin:1rem 0 0;font-size:.84rem;text-align:center}.auth-page .auth-message:not(:empty){padding:.65rem .8rem;border-radius:9px;background:#fff1f2}.auth-page .auth-message[data-state=success]{background:#edf9f2;color:#166534}.auth-page .auth-message[data-state=loading]{background:#f1f5f9;color:#475569}
.auth-assurance{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #edf0f2;color:#728094;font-size:.72rem}.auth-assurance svg{width:1rem;fill:none;stroke:#708272;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.auth-back{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:1rem;color:var(--auth-red-dark);font-size:.84rem;font-weight:700;text-decoration:none}.auth-back:hover{text-decoration:underline}.auth-page .password-help{line-height:1.5}.auth-page .auth-invalid{margin-bottom:1rem}
@media(max-width:480px){.auth-page .auth-shell{align-items:start;padding:.75rem}.auth-page .auth-card{margin:auto 0;padding:1.4rem;border-radius:19px}.auth-kicker{margin-top:1.6rem}.auth-header{margin-bottom:1.4rem}.auth-brand small{font-size:.65rem}.auth-page .auth-shell::before,.auth-page .auth-shell::after{display:none}}
@media(prefers-reduced-motion:reduce){.auth-page *{scroll-behavior:auto!important;transition:none!important}}
