[x-cloak]{display:none!important}

.auth-page{
    min-height:100vh;display:flex;flex-direction:column;
    background:#08080a;color:#f4f4f5;font-family:'Inter',system-ui,sans-serif;
    position:relative;overflow-x:hidden;
}

.auth-bg{
    position:fixed;inset:0;pointer-events:none;z-index:0;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
        radial-gradient(ellipse 60% 45% at 15% 40%,rgba(59,130,246,.1),transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 70%,rgba(99,102,241,.06),transparent 50%);
    background-size:48px 48px,48px 48px,auto,auto;
}

.auth-nav{
    position:relative;z-index:10;display:flex;align-items:center;gap:16px;
    padding:16px 28px;border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(8,8,10,.85);backdrop-filter:blur(12px);
}
.auth-nav-brand{
    display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;
    color:#fff;text-decoration:none;margin-right:auto;
}
.auth-nav-logo{
    width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
    background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff;
}
.auth-nav-logo svg{width:18px;height:18px}
.auth-nav-links{display:flex;align-items:center;gap:6px}
.auth-nav-icon{
    width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
    color:#71717a;border:1px solid transparent;text-decoration:none;
    transition:color .15s,background .15s,border-color .15s;
}
.auth-nav-icon:hover{color:#fff;background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
.auth-nav-icon svg{width:18px;height:18px}
.auth-nav-actions{display:flex;align-items:center;gap:10px}
.auth-nav-link{
    padding:8px 14px;font-size:13px;font-weight:600;color:#a1a1aa;
    text-decoration:none;border-radius:8px;transition:color .15s;
}
.auth-nav-link:hover,.auth-nav-link.on{color:#fff}
.auth-nav-btn{
    display:inline-flex;align-items:center;gap:6px;padding:9px 16px;
    font-size:13px;font-weight:600;color:#fff;text-decoration:none;
    background:linear-gradient(180deg,#3b82f6,#2563eb);border-radius:10px;
    box-shadow:0 4px 16px rgba(59,130,246,.25);
    transition:transform .15s,box-shadow .15s,opacity .15s;
}
.auth-nav-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(59,130,246,.35)}
.auth-nav-btn.on{opacity:.85}
.auth-nav-btn svg{width:16px;height:16px}

.auth-shell{
    flex:1;position:relative;z-index:1;
    display:grid;grid-template-columns:1fr 480px;gap:48px;
    align-items:center;max-width:1100px;width:100%;margin:0 auto;
    padding:48px 28px 32px;
}
@media(max-width:900px){
    .auth-shell{grid-template-columns:1fr;padding:32px 20px 24px;gap:32px}
    .auth-hero{text-align:center}
    .auth-hero-actions{justify-content:center}
}

.auth-hero{padding-right:12px}
.auth-hero-mark{margin-bottom:24px}
.auth-hero-icon{
    width:72px;height:72px;border-radius:18px;display:grid;place-items:center;
    background:linear-gradient(135deg,rgba(59,130,246,.15),rgba(99,102,241,.08));
    border:1px solid rgba(59,130,246,.25);color:#60a5fa;
    box-shadow:0 0 40px rgba(59,130,246,.12);
}
.auth-hero-icon svg{width:36px;height:36px}
.auth-hero-title{
    font-size:clamp(28px,4vw,40px);font-weight:800;letter-spacing:-.03em;
    margin-bottom:12px;line-height:1.15;
}
.auth-hero-desc{font-size:15px;color:#71717a;line-height:1.65;max-width:420px}
@media(max-width:900px){.auth-hero-desc{margin:0 auto}}
.auth-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.auth-hero-btn{
    display:inline-flex;align-items:center;gap:8px;padding:11px 18px;
    font-size:13px;font-weight:600;color:#d4d4d8;text-decoration:none;
    background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
    border-radius:10px;transition:border-color .15s,background .15s,color .15s;
}
.auth-hero-btn:hover{color:#fff;border-color:rgba(59,130,246,.35);background:rgba(59,130,246,.08)}
.auth-hero-btn svg{width:16px;height:16px;color:#60a5fa}

.auth-panel{display:flex;justify-content:center}
.auth-card{
    width:100%;max-width:420px;
    background:rgba(14,14,18,.95);border:1px solid rgba(255,255,255,.07);
    border-radius:18px;padding:28px 28px 24px;
    box-shadow:0 20px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-card-head{
    display:flex;align-items:flex-start;gap:14px;margin-bottom:24px;
}
.auth-card-icon{
    width:44px;height:44px;border-radius:12px;flex-shrink:0;
    display:grid;place-items:center;
    background:rgba(59,130,246,.12);border:1px solid rgba(59,130,246,.3);color:#60a5fa;
}
.auth-card-icon svg{width:20px;height:20px}
.auth-card-head h2{font-size:20px;font-weight:700;margin-bottom:4px;letter-spacing:-.02em}
.auth-card-head p{font-size:13px;color:#71717a;line-height:1.45}

.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-field{position:relative}
.auth-input{
    width:100%;padding:14px 16px;box-sizing:border-box;
    background:#0a0a0e;border:1px solid #27272a;border-radius:11px;
    color:#fafafa;font-size:15px;font-family:inherit;outline:none;
    transition:border-color .2s,box-shadow .2s;
}
.auth-input::placeholder{color:#52525b}
.auth-input:hover{border-color:#3f3f46}
.auth-input:focus{
    border-color:rgba(59,130,246,.5);
    box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.auth-input.invalid{border-color:rgba(239,68,68,.55);box-shadow:0 0 0 3px rgba(239,68,68,.1)}
.auth-input.has-toggle{padding-right:88px}

.auth-eye{
    position:absolute;right:10px;top:50%;transform:translateY(-50%);
    display:inline-flex;align-items:center;gap:5px;
    padding:6px 8px;border:none;background:none;color:#71717a;
    font-size:12px;font-weight:500;font-family:inherit;cursor:pointer;
    border-radius:8px;transition:color .15s,background .15s;
}
.auth-eye:hover{color:#a1a1aa;background:rgba(255,255,255,.04)}
.auth-eye svg{width:16px;height:16px;flex-shrink:0}

.auth-2fa-row{display:block}
.auth-2fa{display:none}
.auth-2fa.show{display:block}

.auth-submit{
    width:100%;padding:15px 20px;margin-top:4px;border:none;border-radius:11px;
    background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);
    color:#fff;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;
    box-shadow:0 6px 24px rgba(59,130,246,.35);
    transition:transform .15s,box-shadow .15s,opacity .15s;
}
.auth-submit:hover:not(:disabled){
    transform:translateY(-1px);
    box-shadow:0 8px 28px rgba(59,130,246,.45);
}
.auth-submit:active:not(:disabled){transform:translateY(0)}
.auth-submit:disabled{opacity:.65;cursor:not-allowed}

.auth-spin{
    width:18px;height:18px;border:2px solid rgba(255,255,255,.25);
    border-top-color:#fff;border-radius:50%;animation:authSpin .7s linear infinite;
    display:inline-block;vertical-align:middle;
}
@keyframes authSpin{to{transform:rotate(360deg)}}

.auth-divider{
    display:flex;align-items:center;gap:14px;margin:22px 0 14px;
    color:#52525b;font-size:13px;font-weight:500;
}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:#27272a}

.auth-social{display:flex;gap:10px}
.auth-social-btn{
    flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;
    height:40px;padding:0 12px;box-sizing:border-box;
    background:#0a0a0e;border:1px solid #27272a;border-radius:10px;
    cursor:pointer;transition:border-color .2s,background .2s;
    text-decoration:none;font-family:inherit;
}
.auth-social-btn span{font-size:13px;font-weight:600;color:#d4d4d8}
.auth-social-btn:hover{border-color:#3f3f46;background:#121218}
.auth-social-btn.discord:hover{border-color:rgba(88,101,242,.4);background:rgba(88,101,242,.07)}
.auth-social-btn.google:hover{border-color:rgba(66,133,244,.3);background:rgba(66,133,244,.05)}
.auth-social-btn.muted{opacity:.55;cursor:not-allowed}
.auth-social-btn.muted:hover{opacity:.65}
.auth-social-btn svg{width:18px;height:18px;flex-shrink:0}

.auth-switch{
    text-align:center;font-size:14px;color:#71717a;margin-top:20px;line-height:1.5;
}
.auth-switch a{color:#60a5fa;font-weight:600;text-decoration:none}
.auth-switch a:hover{color:#93c5fd;text-decoration:underline}

.auth-strength{height:3px;border-radius:999px;background:#1a1a1e;margin-top:-4px;overflow:hidden}
.auth-strength span{display:block;height:100%;width:0;border-radius:999px;transition:width .3s,background .3s}
.auth-hint{font-size:12px;color:#52525b;margin-top:-4px}

.turnstile-wrap{display:flex;justify-content:center;margin:4px 0 2px}

.auth-foot{
    position:relative;z-index:1;padding:20px;text-align:center;
    font-size:12px;color:#52525b;border-top:1px solid rgba(255,255,255,.05);
}
.auth-foot a{color:#71717a;text-decoration:none}
.auth-foot a:hover{color:#a1a1aa}

.swal2-popup.auth-swal{
    background:#141416!important;border:1px solid #27272a!important;
    color:#f4f4f5!important;border-radius:16px!important;
    font-family:'Inter',system-ui,sans-serif!important;
}
.swal2-popup.auth-swal .swal2-title{color:#fff!important;font-size:15px!important}
.swal2-popup.auth-swal-2fa{width:min(380px,92vw)!important}
.swal2-popup.auth-swal-2fa .swal2-input{
    background:#0c0c0e!important;border:1px solid #27272a!important;color:#fff!important;
    border-radius:10px!important;font-size:20px!important;letter-spacing:.35em;text-align:center;
}
.auth-2fa-hint{margin:0 0 8px;font-size:13px;color:#a1a1aa;line-height:1.5}
.auth-2fa-trust{
    display:flex;align-items:flex-start;gap:10px;margin:12px 0 0;padding:12px 14px;
    background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.18);border-radius:10px;
    cursor:pointer;font-size:13px;color:#cbd5e1;text-align:left;
}
.auth-2fa-trust input{width:16px;height:16px;accent-color:#3b82f6;flex-shrink:0;margin:2px 0 0;cursor:pointer}
.auth-2fa-trust span{line-height:1.45;flex:1}

.swal2-popup.auth-swal-oauth{
    width:min(420px,92vw)!important;padding:24px 22px 20px!important;
}
.swal2-popup.auth-swal-oauth .swal2-title{font-size:16px!important;line-height:1.45!important}
.auth-oauth-hint{
    margin:0 0 12px;font-size:13px;line-height:1.5;color:#a1a1aa;text-align:left;
}
.auth-oauth-uri{
    background:#0c0c0e;border:1px solid #27272a;border-radius:12px;padding:12px 14px;
    text-align:left;word-break:break-all;
}
.auth-oauth-uri code{
    font-family:ui-monospace,'Cascadia Code',Consolas,monospace;
    font-size:12px;color:#e4e4e7;line-height:1.55;
}
.swal2-popup.auth-swal-oauth .swal2-actions{margin-top:18px;gap:10px}
.swal2-popup.auth-swal-oauth .swal2-confirm{
    background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border:none!important;
    border-radius:10px!important;font-size:13px!important;padding:10px 18px!important;
}
.swal2-popup.auth-swal-oauth .swal2-cancel{
    background:transparent!important;border:1px solid #3f3f46!important;
    color:#a1a1aa!important;border-radius:10px!important;font-size:13px!important;
}

@media(max-width:640px){
    .auth-nav{padding:12px 16px}
    .auth-nav-link{display:none}
    .auth-card{padding:22px 20px 20px}
}
