.auth-page{
    flex:1 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px 16px;
     background:#212529;
}

.auth-card{
    position:relative;
    width:100%;
    max-width:420px;
    background:#2F3040;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:16px;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.04);
    padding:18px 18px 16px;
    overflow:hidden;
}

.auth-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg, rgba(255,210,45,0) 0%, rgba(255,210,45,0.95) 50%, rgba(255,210,45,0) 100%);
    opacity:.9;
}

.auth-card::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 28%);
}

.auth-card-glow{
    position:absolute;
    top:-62px;
    left:50%;
    transform:translateX(-50%);
    width:210px;
    height:105px;
    background:radial-gradient(circle, rgba(255,210,45,0.16) 0%, rgba(255,210,45,0) 74%);
    pointer-events:none;
}

.auth-card-header{
    position:relative;
    z-index:1;
    text-align:center;
    margin-bottom:12px;
}

.auth-card-title{
    margin:0 0 4px;
    color:#ffffff;
    font-size:24px;
    font-weight:900;
    line-height:1.08;
    letter-spacing:.2px;
    text-shadow:0 1px 0 rgba(0,0,0,0.2);
}

.auth-card-subtitle{
    margin:0;
    color:#c6d5e8;
    font-size:12px;
    line-height:1.4;
}

.auth-alert{
    position:relative;
    z-index:1;
    border-radius:10px;
    padding:9px 11px;
    margin-bottom:8px;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}

.auth-alert.error{
    background:linear-gradient(180deg, rgba(129,33,33,0.96) 0%, rgba(107,24,24,0.96) 100%);
    border:1px solid rgba(255,255,255,0.07);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-alert.success{
    background:linear-gradient(180deg, rgba(34,113,67,0.96) 0%, rgba(24,93,54,0.96) 100%);
    border:1px solid rgba(255,255,255,0.07);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-live-warning{
    animation:fadeIn .18s ease;
}

.auth-form{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:9px;
}

.auth-field{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.auth-field--compact{
    margin-top:6px;
}

.auth-label{
    color:#edf3fb;
    font-size:12px;
    font-weight:800;
    letter-spacing:.18px;
    line-height:1.2;
}

.auth-help-text{
    color:#ffd22d;
    font-size:10px;
    line-height:1.3;
    text-transform:lowercase;
}

.auth-input-wrap{
    position:relative;
    display:flex;
    align-items:center;
}

.auth-input-icon{
    position:absolute;
    left:11px;
    top:50%;
    transform:translateY(-50%);
    font-size:13px;
    opacity:.88;
    pointer-events:none;
    filter:grayscale(.05);
}

.auth-input{
    width:100%;
    height:40px;
    border:1px solid rgba(255,255,255,0.13);
    border-radius:10px;
    background:linear-gradient(180deg, rgba(9,16,25,0.72) 0%, rgba(13,21,32,0.82) 100%);
    color:#ffffff;
    padding:0 12px 0 34px;
    outline:none;
    font-size:13px;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.auth-input:hover{
    border-color:rgba(255,255,255,0.18);
}

.auth-input--with-toggle{
    padding-right:58px;
}

.auth-input:focus{
    border-color:#81dfff;
    box-shadow:
        0 0 0 3px rgba(127,216,255,0.13),
        0 0 18px rgba(127,216,255,0.08);
    background:linear-gradient(180deg, rgba(12,20,31,0.88) 0%, rgba(14,24,36,0.92) 100%);
}

.auth-input::placeholder{
    color:#9db0c4;
    font-size:12px;
}

.auth-toggle-password{
    position:absolute;
    right:6px;
    top:50%;
    transform:translateY(-50%);
    min-width:44px;
    height:26px;
    border:none;
    border-radius:7px;
    background:linear-gradient(180deg, #27384a 0%, #1d2b3a 100%);
    color:#e8f0fb;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    transition:.18s ease;
    padding:0 8px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-toggle-password:hover{
    background:linear-gradient(180deg, #31475d 0%, #243547 100%);
    color:#ffd22d;
}

.auth-toggle-password:active{
    transform:translateY(-50%) scale(.98);
}

.auth-strength,
.auth-match{
    min-height:14px;
    font-size:10px;
    font-weight:700;
    line-height:1.2;
}

.auth-strength{
    color:#b8c9db;
}

.auth-strength.weak{
    color:#ff9090;
}

.auth-strength.medium{
    color:#ffd36d;
}

.auth-strength.strong{
    color:#7fe0a0;
}

.auth-match.ok{
    color:#7fe0a0;
}

.auth-match.no{
    color:#ff9090;
}

.auth-captcha-box{
    border:1px solid rgba(255,255,255,0.11);
    background:linear-gradient(180deg, rgba(8,15,25,0.42) 0%, rgba(10,18,28,0.34) 100%);
    border-radius:12px;
    padding:10px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}

.auth-captcha-title{
    margin:0 0 5px;
    color:#ffffff;
    font-size:12px;
    font-weight:800;
    line-height:1.2;
}

.auth-turnstile-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:74px;
    border-radius:10px;
    background:linear-gradient(180deg, #182536 0%, #13202f 100%);
    border:1px solid rgba(255,255,255,0.05);
    padding:12px;
}

.auth-turnstile-note{
    border-radius:10px;
    background:linear-gradient(180deg, #182536 0%, #13202f 100%);
    color:#ffd36d;
    font-size:12px;
    font-weight:700;
    line-height:1.45;
    padding:12px;
    border:1px solid rgba(255,255,255,0.05);
}

.auth-captcha-question{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    border-radius:10px;
    background:linear-gradient(180deg, #182536 0%, #13202f 100%);
    color:#ffd22d;
    font-size:17px;
    font-weight:900;
    letter-spacing:.4px;
    margin-bottom:2px;
    border:1px solid rgba(255,255,255,0.05);
    text-shadow:0 1px 0 rgba(0,0,0,0.2);
}

.auth-button{
    width:100%;
    height:42px;
    border:none;
    border-radius:10px;
    background:linear-gradient(180deg, #ffe070 0%, #ffd22d 55%, #f0c21b 100%);
    color:#1a1a1a;
    font-size:13px;
    font-weight:900;
    letter-spacing:.2px;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
    box-shadow:
        0 8px 18px rgba(255,210,45,0.18),
        inset 0 1px 0 rgba(255,255,255,0.26);
}

.auth-button:hover{
    transform:translateY(-1px);
    filter:brightness(1.03);
    box-shadow:
        0 10px 22px rgba(255,210,45,0.22),
        inset 0 1px 0 rgba(255,255,255,0.26);
}

.auth-button:active{
    transform:translateY(0);
}

.auth-button.is-loading{
    opacity:.85;
    cursor:wait;
}

.auth-footer-text{
    position:relative;
    z-index:1;
    margin:10px 0 0;
    text-align:center;
    color:#d1dced;
    font-size:12px;
    line-height:1.35;
}

.auth-link{
    color:#ffd22d;
    text-decoration:none;
    font-weight:800;
    transition:color .18s ease;
}

.auth-link:hover{
    color:#fff1a7;
}

.auth-honeypot{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-4px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media screen and (max-width:1100px){
    .auth-page{
        padding:12px 14px;
    }
}

@media screen and (max-width:640px){
    .auth-page{
        padding:10px 10px;
    }

    .auth-card{
        max-width:400px;
        padding:16px 14px 14px;
        border-radius:14px;
    }

    .auth-card-title{
        font-size:22px;
    }

    .auth-card-subtitle{
        font-size:11px;
    }

    .auth-input{
        height:38px;
        font-size:12px;
    }

    .auth-input::placeholder{
        font-size:11px;
    }

    .auth-button{
        height:40px;
        font-size:12px;
    }

    .auth-toggle-password{
        min-width:42px;
        height:24px;
        font-size:10px;
    }

    .auth-turnstile-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:74px;
    border-radius:10px;
    background:linear-gradient(180deg, #182536 0%, #13202f 100%);
    border:1px solid rgba(255,255,255,0.05);
    padding:12px;
}

.auth-turnstile-note{
    border-radius:10px;
    background:linear-gradient(180deg, #182536 0%, #13202f 100%);
    color:#ffd36d;
    font-size:12px;
    font-weight:700;
    line-height:1.45;
    padding:12px;
    border:1px solid rgba(255,255,255,0.05);
}

.auth-captcha-question{
        min-height:36px;
        font-size:16px;
    }

    .auth-help-text,
    .auth-strength,
    .auth-match{
        font-size:10px;
    }

    .auth-footer-text{
        font-size:11px;
    }
}
.auth-footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}

.auth-footer-grid--single{
    grid-template-columns:1fr;
}

.auth-footer-box{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:12px;
    background:linear-gradient(180deg, rgba(9,16,25,0.42) 0%, rgba(12,20,31,0.36) 100%);
    color:#d8e3f1;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
    padding:10px 12px;
}

.auth-register-note{
    margin:12px 0 0;
    color:#afc0d4;
    font-size:11px;
    text-align:center;
}

@media screen and (max-width:560px){
    .auth-footer-grid{
        grid-template-columns:1fr;
    }
}

.auth-strength-bars{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:4px;
    margin-top:6px;
}

.strength-segment{
    height:8px;
    border-radius:999px;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.06);
}

.strength-segment.weak{ background:#ff7f7f; }
.strength-segment.medium{ background:#ffd22d; }
.strength-segment.strong{ background:#5fd48b; }

.auth-captcha-box--centered .cf-turnstile,
.auth-captcha-box--centered .vsro-turnstile-box{
    margin-left:auto;
    margin-right:auto;
}
