*{box-sizing:border-box}

:root{
    --bg:#07111f;
    --panel:#0d1b2e;
    --field:#071421;
    --border:rgba(255,255,255,.08);
    --text:#fff;
    --muted:#91a4bd;
    --brand:#2995ff;
    --danger:#ff97a6;
    --success:#91e8c3;
}

html{color-scheme:dark}

body{
    margin:0;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    background:
        radial-gradient(circle at 20% 0%,rgba(41,149,255,.10),transparent 32%),
        var(--bg);
    color:var(--text);
}

.auth-shell{
    width:100%;
    max-width:470px;
}

.auth-card{
    width:100%;
    padding:35px;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:0 25px 80px rgba(0,0,0,.35);
}

.auth-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:30px;
}

.logo{
    font-size:27px;
    font-weight:850;
    letter-spacing:-.3px;
}

.logo span{color:var(--brand)}

.lang-switch{
    display:flex;
    align-items:center;
    gap:3px;
    padding:3px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#081624;
}

.lang-switch a{
    min-width:36px;
    height:30px;
    padding:0 9px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    text-decoration:none;
    color:#7389a2;
    font-size:11px;
    font-weight:800;
}

.lang-switch a.active{
    background:rgba(41,149,255,.17);
    color:#71bdff;
}

h1{
    margin:0 0 8px;
    font-size:27px;
    letter-spacing:-.3px;
}

.sub{
    margin:0 0 25px;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
}

label{
    display:block;
    margin:16px 0 7px;
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

input{
    width:100%;
    padding:13px 14px;
    border-radius:11px;
    border:1px solid rgba(255,255,255,.09);
    outline:0;
    background:var(--field);
    color:#fff;
    font:inherit;
}

input:focus{
    border-color:rgba(41,149,255,.62);
    box-shadow:0 0 0 3px rgba(41,149,255,.08);
}

button,.btn{
    width:100%;
    min-height:45px;
    margin-top:22px;
    border:0;
    border-radius:11px;
    cursor:pointer;
    background:var(--brand);
    color:#fff;
    font-weight:800;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
}

button:hover,.btn:hover{filter:brightness(1.08)}

.msg{
    padding:11px 13px;
    margin-bottom:18px;
    border-radius:10px;
    font-size:12px;
    line-height:1.55;
}

.msg.error{
    background:rgba(255,93,115,.08);
    border:1px solid rgba(255,93,115,.18);
    color:var(--danger);
}

.msg.success{
    background:rgba(66,211,146,.08);
    border:1px solid rgba(66,211,146,.18);
    color:var(--success);
}

.msg.warning{
    background:rgba(242,201,76,.07);
    border:1px solid rgba(242,201,76,.16);
    color:#e6d58d;
}

.inline-link{
    display:block;
    margin-top:8px;
    color:#58b5ff;
    text-decoration:none;
    font-weight:700;
}

.forgot{
    text-align:right;
    margin-top:9px;
    font-size:11px;
}

.forgot a,
.auth-footer a,
.back a{
    color:#58b5ff;
    text-decoration:none;
    font-weight:700;
}

.auth-footer{
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.06);
    text-align:center;
    color:#7f93aa;
    font-size:12px;
}

.back{
    text-align:center;
    margin-top:20px;
    font-size:12px;
}

.turnstile-wrap{
    display:flex;
    justify-content:center;
    margin-top:18px;
    min-height:65px;
}

.icon{
    width:60px;
    height:60px;
    margin:0 auto 18px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0a1a2c;
    border:1px solid var(--border);
    font-size:25px;
}

.center{text-align:center}

.actions{
    display:flex;
    justify-content:center;
    gap:9px;
    flex-wrap:wrap;
    margin-top:24px;
}

.actions .btn{
    width:auto;
    margin-top:0;
    padding:0 16px;
}

.actions .btn.secondary{
    background:#0a192a;
    border:1px solid var(--border);
    color:#d8e3ee;
}

.small{
    color:#60758d;
    font-size:10px;
    line-height:1.55;
    text-align:center;
    margin-top:20px;
}

@media(max-width:540px){
    body{padding:16px}
    .auth-card{padding:27px 20px}
    .auth-top{align-items:flex-start}
    .logo{font-size:24px}
}
