/* Shared Patromnia tokens come from the existing vitrine stylesheet. */
.auth-page { min-height: 100svh; isolation: isolate; }
.auth-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 13% 48%, rgba(37, 99, 235, .09), transparent 45%), radial-gradient(ellipse at 47% 65%, rgba(139, 92, 246, .065), transparent 42%); }
#auth-cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.auth-topbar { padding-top: 1.65rem; padding-bottom: 1.65rem; }
.auth-return { display: inline-flex; align-items: center; gap: .65rem; color: var(--text-2); font-size: .8rem; text-decoration: none; transition: color .2s; }
.auth-return:hover { color: var(--text); }
.auth-skip { position: fixed; top: -100px; left: 1rem; z-index: 40; padding: .8rem 1rem; border-radius: 8px; background: var(--surface-solid); color: var(--text); }
.auth-skip:focus { top: 1rem; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: clamp(3rem, 7vw, 7rem); width: min(1100px, calc(100% - 6rem)); min-height: calc(100svh - 82px); margin: 0 auto; padding: 110px 0 65px; }
.auth-intro { padding-bottom: 1.5rem; }
.auth-intro .kicker { margin-bottom: 1.6rem; font-size: .65rem; letter-spacing: .16em; }
.auth-intro h2 { font-size: clamp(2.7rem, 4.25vw, 4rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.09; }
.auth-intro-copy { color: var(--text-2); max-width: 370px; margin-top: 1.6rem; font-size: .97rem; line-height: 1.85; }
.auth-orbits { position: relative; height: 152px; max-width: 390px; margin-top: 2.2rem; overflow: visible; }
.orbit { position: absolute; left: 43%; top: 42%; width: 230px; height: 76px; margin: -38px 0 0 -115px; border: 1px solid rgba(96, 165, 250, .19); border-radius: 50%; transform: rotate(-18deg); }
.orbit-two { width: 285px; height: 94px; margin: -47px 0 0 -142px; transform: rotate(13deg); border-color: rgba(139, 92, 246, .18); }
.orbit-three { width: 338px; height: 110px; margin: -55px 0 0 -169px; transform: rotate(-6deg); border-color: rgba(34, 211, 238, .1); }
.orbit-core { position: absolute; left: 43%; top: 42%; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: #dbeafe; box-shadow: 0 0 20px 7px rgba(96, 165, 250, .22), 0 0 60px 22px rgba(59, 130, 246, .13); }
.orbit-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; animation: orbit-breathe 6s ease-in-out infinite; }
.orbit-blue { left: 66%; top: 21%; background: var(--c-budget); box-shadow: 0 0 16px 4px rgba(59, 130, 246, .25); }
.orbit-purple { left: 11%; top: 30%; background: var(--c-prev); box-shadow: 0 0 16px 4px rgba(139, 92, 246, .22); animation-delay: -2s; }
.orbit-green { left: 77%; top: 57%; background: var(--c-invest); box-shadow: 0 0 16px 4px rgba(16, 185, 129, .22); animation-delay: -4s; }
.orbit-caption { position: absolute; left: 0; bottom: -4px; color: var(--text-3); font-size: .7rem; letter-spacing: .055em; }
@keyframes orbit-breathe { 50% { opacity: .55; transform: translateY(3px); } }
.auth-panel { width: 100%; }
.auth-card { position: relative; padding: 2.3rem 2.35rem 2rem; border-radius: 22px; border: 1px solid rgba(96, 165, 250, .18); background: linear-gradient(150deg, rgba(17, 25, 44, .97), rgba(8, 13, 25, .97)); box-shadow: 0 28px 90px rgba(0, 0, 0, .38), 0 0 70px rgba(59, 130, 246, .025); }
.auth-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .58), rgba(167, 139, 250, .4), transparent); }
.auth-card h1 { font-size: 1.85rem; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 .8rem; text-shadow: none; }
.auth-eyebrow { display: flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .12em; font-size: .61rem; font-weight: 650; color: var(--accent-text); margin-bottom: 1.15rem; }
.auth-step-dot { width: 5px; height: 5px; background: var(--accent-text); border-radius: 50%; box-shadow: 0 0 12px rgba(96, 165, 250, .5); }
.auth-description { color: var(--text-2); font-size: .875rem; line-height: 1.75; margin-bottom: 1rem; overflow-wrap: anywhere; }
.auth-description strong { color: var(--text); font-weight: 500; }
.auth-form { margin-top: 1.9rem; }
.auth-field { margin-bottom: 1.25rem; }
.auth-field label, .auth-card form label { display: block; margin-bottom: .5rem; color: #cbd5e1; font-size: .78rem; font-weight: 500; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.auth-label-row a { font-size: .74rem; color: var(--accent-text); text-decoration: none; }
.auth-card input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .auth-card select, .auth-card textarea { width: 100%; min-height: 48px; padding: .75rem .95rem; border: 1px solid rgba(148, 163, 184, .18); border-radius: 10px; color: var(--text); background: rgba(4, 8, 18, .55); font: inherit; font-size: .85rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-card input::placeholder { color: #68778e; opacity: 1; }
.auth-card input:focus { border-color: rgba(96, 165, 250, .72); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.auth-card input[aria-invalid=true] { border-color: #fb7185; }
.auth-password { position: relative; }
.auth-password input { padding-right: 3.1rem !important; }
.auth-password-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--text-2); background: transparent; cursor: pointer; }
.auth-password-toggle[hidden] { display: none; }
.auth-password-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.auth-password-toggle:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
.auth-primary, .auth-card form button[type=submit]:not(.auth-password-toggle):not(.auth-text-button):not(.auth-secondary) { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .8rem 1rem; margin-top: 1.6rem; border: 1px solid rgba(147, 197, 253, .25); border-radius: 10px; background: linear-gradient(115deg, #2563eb, #355be4 55%, #5753df); box-shadow: 0 6px 22px rgba(37, 99, 235, .15), inset 0 1px 0 rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: filter .2s, transform .2s; }
.auth-primary span { position: absolute; right: 1.1rem; font-size: 1.05rem; }
.auth-primary { position: relative; }
.auth-primary:hover { filter: brightness(1.13); transform: translateY(-1px); }
.auth-security-note { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(148, 163, 184, .1); }
.auth-note-icon { color: var(--accent-text); font-size: .95rem; line-height: 1.6; }
.auth-security-note p { color: var(--text-2); font-size: .7rem; line-height: 1.7; }
.auth-access-note { margin-top: 1rem; color: var(--text-3); font-size: .67rem; line-height: 1.7; }
.auth-panel-caption { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.15rem; color: var(--text-3); font-size: .68rem; }
.auth-lock { color: #7e92af; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem clamp(1rem, 4vw, 2.5rem); color: var(--text-3); font-size: .68rem; position: relative; z-index: 2; }
.auth-errors, .auth-message { padding: .7rem .85rem; margin-bottom: 1rem; border: 1px solid rgba(251, 113, 133, .22); border-radius: 8px; background: rgba(251, 113, 133, .045); color: #fda4af; font-size: .78rem; line-height: 1.6; }
.auth-message { color: #bfdbfe; background: rgba(96, 165, 250, .05); border-color: rgba(96, 165, 250, .2); }
.auth-card .errorlist { list-style: none; margin: .4rem 0 0; padding: 0; color: #fda4af; font-size: .73rem; }
.auth-errors .errorlist { margin: 0; }
.auth-code input { font-size: 1.3rem !important; letter-spacing: .28em; text-align: center; }
.auth-field-hint { color: var(--text-3); font-size: .71rem; line-height: 1.7; }
.auth-back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; color: var(--accent-text); font-size: .75rem; text-decoration: none; }
.auth-secondary-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; }
.auth-secondary-actions .auth-back-link { margin: 0; }
.auth-text-button { border: 0; padding: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: .75rem; cursor: pointer; }
.auth-secondary { width: 100%; min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(96, 165, 250, .04); color: var(--text-2); cursor: pointer; font: inherit; font-size: .8rem; }
.auth-card form p { color: var(--text-2); font-size: .82rem; margin: 1rem 0; }
.auth-card form ul:not(.errorlist) { color: var(--text-2); font-size: .73rem; padding-left: 1.2rem; }
.auth-card form fieldset { padding: 0; border: 0; margin: 1rem 0; min-width: 0; }
.auth-card form fieldset legend { font-size: .8rem; }
.auth-page :focus-visible { outline: 2px solid #93c5fd; outline-offset: 4px; }
.auth-card:focus { outline: none; }
@media (min-width: 1600px) { .auth-layout { width: min(1180px, calc(100% - 8rem)); grid-template-columns: minmax(0, 1fr) minmax(0, 460px); } }
@media (max-width: 860px) { .auth-layout { width: min(690px, calc(100% - 3rem)); grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 2rem; } .auth-intro h2 { font-size: 2.5rem; } .auth-intro .kicker { font-size: .55rem; line-height: 1.8; } .auth-intro-copy { font-size: .85rem; } .auth-orbits { transform: scale(.75); transform-origin: left center; } .auth-card { padding: 2rem 1.7rem; } }
@media (max-width: 700px) { .auth-topbar { padding: 1.3rem 1.3rem; } .auth-topbar .topbar-brand { font-size: .85rem; } .auth-return { font-size: .7rem; gap: .4rem; } .auth-layout { display: block; width: min(440px, calc(100% - 2.5rem)); min-height: calc(100svh - 90px); padding: 105px 0 40px; } .auth-intro { text-align: center; padding-bottom: 1.85rem; } .auth-intro .kicker { margin-bottom: .65rem; font-size: .57rem; } .auth-intro h2 { font-size: 1.95rem; line-height: 1.15; } .auth-intro h2 .grad br { display: none; } .auth-intro-copy, .auth-orbits { display: none; } .auth-card { padding: 1.85rem 1.5rem 1.65rem; border-radius: 18px; } .auth-card h1 { font-size: 1.65rem; } .auth-footer { padding: 1rem 1.25rem; font-size: .58rem; } }
@media (max-width: 360px) { .auth-layout { width: calc(100% - 1.5rem); } .auth-card { padding: 1.65rem 1.2rem; } .auth-footer span:last-child { max-width: 130px; text-align: right; } }
@media (prefers-reduced-motion: reduce) { .orbit-dot { animation: none; } .auth-primary { transition: none; } }
