/* Copyright (c) 2026 Croynel. All rights reserved.
 *
 * This source code is proprietary and confidential.
 * Unauthorized copying, modification, distribution, or use,
 * in whole or in part, is strictly prohibited.
 */

.auth-app{--auth-bg:color-mix(in srgb,var(--bg) 97%,var(--text));--auth-surface:color-mix(in srgb,var(--bg) 92%,var(--text));--auth-border:color-mix(in srgb,var(--line) 65%,transparent);min-height:100svh;background:var(--auth-bg);color:var(--text);font-family:var(--sans);font-weight:400}
.auth-app :focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.auth-masthead{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:76px;padding:18px 40px;border-bottom:1px solid var(--auth-border);background:var(--bg)}
.auth-brand{display:flex;align-items:center;gap:20px;flex-shrink:0}
.auth-brand>span{font-size:12px;font-weight:500;letter-spacing:.22em;color:var(--gold)}
.auth-brand>strong{padding-left:20px;border-left:1px solid var(--line);font-size:20px;font-weight:600;line-height:1;letter-spacing:.02em}
.auth-masthead nav{display:flex;align-items:center;gap:28px;color:var(--muted);font-size:13px}
.auth-masthead nav>a{display:flex;align-items:center;gap:10px;min-height:38px}
.auth-masthead nav svg{width:15px;height:15px}
.auth-app a:hover{color:var(--gold)}
.auth-workspace{display:grid;grid-template-columns:minmax(0,1fr);max-width:1640px;min-height:calc(100svh - 76px);margin:auto}
.auth-content{display:flex;align-items:center;justify-content:center;min-width:0;padding:64px 56px 80px}
.auth-app .auth-panel{width:100%;max-width:400px;min-width:0;padding:0;border:0;background:none}
.auth-heading{margin-bottom:36px}
.auth-app .auth-panel h1{margin:0;font-family:var(--sans);font-size:42px;line-height:1.12;letter-spacing:-.04em;font-weight:500;overflow-wrap:anywhere;text-wrap:balance}
.auth-heading>p{margin:20px 0 0;font-size:14px;line-height:1.8;color:var(--muted)}
.auth-form{display:grid;gap:24px}
.auth-form>label,.auth-field>label{display:grid;gap:10px;min-width:0;font-size:13px;line-height:1.5;color:var(--text)}
.auth-field{display:grid;gap:9px;min-width:0}
.auth-form input{width:100%;min-width:0;min-height:52px;padding:14px 16px;border:1px solid var(--auth-border);border-radius:6px;outline:none;background:var(--auth-surface);color:var(--text);font-size:15px;line-height:1.5;transition:border-color .18s,box-shadow .18s}
.auth-form input::placeholder{color:color-mix(in srgb,var(--muted) 75%,transparent)}
.auth-form input:focus{border-color:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 7%,transparent)}
.auth-app .password-field{position:relative;display:block}
.auth-app .password-field input{padding-right:58px}
.auth-app .password-field button{position:absolute;inset:4px 5px 4px auto;display:grid;place-items:center;width:42px;padding:8px;border-radius:4px;color:var(--muted)}
.auth-app .password-field button:hover{color:var(--text);background:color-mix(in srgb,var(--text) 4%,transparent)}
.auth-app .password-field svg{width:19px;height:19px}
.auth-app .field-hint{margin:0;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}
.auth-submit{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;min-height:52px;margin-top:8px;padding:15px 19px;border:1px solid var(--gold);border-radius:6px;background:var(--gold);color:var(--bg);font-size:14px;font-weight:500;transition:background .18s,border-color .18s}
.auth-submit svg{width:19px;height:19px;flex-shrink:0}
.auth-submit:hover{background:color-mix(in srgb,var(--gold) 85%,white);border-color:color-mix(in srgb,var(--gold) 85%,white)}
.auth-app button:disabled{opacity:.5;cursor:default}
.auth-form[aria-busy=true] .auth-submit{cursor:wait}
.auth-app .form-alert,.auth-app .form-confirmation{margin:0;padding:14px 16px;border-radius:6px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.auth-panel>.form-confirmation{margin-bottom:28px}
.auth-alternative{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;width:100%;margin-top:16px;padding:8px 0;font-size:13px;text-align:left;color:var(--muted)}
.auth-alternative svg{width:17px;height:17px;flex-shrink:0}
.auth-alternative:hover{color:var(--gold)}
.auth-switch{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin:32px 0 0;padding-top:28px;border-top:1px solid var(--auth-border);font-size:12px;line-height:1.7;color:var(--muted)}
.auth-switch a{display:inline-flex;align-items:center;gap:12px;min-height:36px;font-size:13px;color:var(--text)}
.auth-switch svg{width:17px;height:17px}
.auth-back{display:inline-flex;align-items:center;gap:10px;min-height:40px;margin-bottom:26px;font-size:12px;color:var(--muted)}
.auth-back>span{display:flex;transform:rotate(180deg)}
.auth-back svg{width:16px;height:16px}
.auth-app .code-destination{margin:0 0 24px;font-size:14px;line-height:1.7;color:var(--gold);overflow-wrap:anywhere}
.auth-form .code-input{font-size:26px;letter-spacing:.35em;text-align:center;padding:16px 8px 16px 18px;font-variant-numeric:tabular-nums}
@media(min-width:1640px){.auth-masthead{padding-inline:max(40px,calc((100vw - 1560px)/2))}}
@media(max-width:1100px){.auth-content{padding:56px 40px}.auth-app .auth-panel h1{font-size:38px}}
@media(max-width:850px){.auth-content{padding:56px 28px 72px}.auth-masthead{padding-inline:28px}}
@media(max-width:480px){.auth-masthead{min-height:72px;padding:16px 22px;gap:20px}.auth-brand{gap:14px}.auth-brand>span{font-size:10px;letter-spacing:.18em}.auth-brand>strong{padding-left:14px;font-size:17px}.auth-website-link{display:none!important}.auth-masthead nav{font-size:12px}.auth-workspace{min-height:calc(100svh - 72px)}.auth-content{align-items:flex-start;padding:48px 24px 64px}.auth-app .auth-panel h1{font-size:36px}.auth-heading{margin-bottom:30px}.auth-form{gap:22px}.auth-form input{font-size:16px}.auth-switch{margin-top:28px;padding-top:22px}.auth-back{margin-top:-10px;margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.auth-form input,.auth-submit{transition:none}}
