:root{
    --stc-navy:#0b2a55;
    --stc-blue:#1267e8;
    --stc-green:#39b54a;
    --stc-text:#172033;
    --stc-muted:#687386;
    --stc-border:#d9e0e8;
    --stc-bg:#f4f7fa;
    --stc-paper:#ffffff;
    --stc-danger:#9b2323;

    --stc-font-family:Inter,"Segoe UI",Arial,sans-serif;
    --stc-font-size-base:15px;
    --stc-radius:8px;
    --stc-radius-large:16px;
    --stc-shadow:0 18px 48px rgba(11,42,85,.10);
}

*{box-sizing:border-box}

body.auth-page{
    margin:0;
    min-height:100vh;
    font-family:var(--stc-font-family);
    font-size:var(--stc-font-size-base);
    color:var(--stc-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(18,103,232,.08), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(57,181,74,.08), transparent 34%),
        var(--stc-bg);
}

.auth-top-accent{
    height:6px;
    background:linear-gradient(
        90deg,
        var(--stc-navy) 0 34%,
        var(--stc-blue) 34% 67%,
        var(--stc-green) 67% 100%
    );
}

.auth-shell{
    width:min(900px,calc(100% - 28px));
    margin:44px auto;
}

.auth-shell.auth-shell-wide{
    width:min(1040px,calc(100% - 28px));
}

.auth-card{
    background:var(--stc-paper);
    border:1px solid var(--stc-border);
    border-radius:var(--stc-radius-large);
    box-shadow:var(--stc-shadow);
    overflow:hidden;
}

.auth-brand{
    padding:30px 34px 24px;
    text-align:center;
    border-bottom:1px solid var(--stc-border);
    background:
        linear-gradient(135deg,rgba(18,103,232,.035),rgba(57,181,74,.045)),
        #fff;
}

.auth-logo{
    display:block;
    width:min(550px,90%);
    max-height:180px;
    object-fit:contain;
    margin:0 auto 14px;
}

.auth-tagline{
    margin:0;
    color:var(--stc-muted);
    font-size:14px;
    font-weight:600;
}

.auth-content{
    padding:34px 40px 38px;
}

.auth-content h1,
.auth-content h2{color:var(--stc-navy)}

.auth-content h1{
    margin:0 0 8px;
    font-size:30px;
}

.auth-content h2{margin-top:24px}

.auth-intro,
.auth-muted{color:var(--stc-muted)}

.auth-intro{margin:0 0 26px}

.auth-field{margin-bottom:17px}

.auth-content label{
    display:block;
    margin:0 0 7px;
    color:#344054;
    font-size:13px;
    font-weight:800;
}

.auth-content input{
    width:100%;
    min-height:46px;
    border:1px solid #cbd4df;
    border-radius:var(--stc-radius);
    padding:10px 12px;
    background:#fff;
    color:var(--stc-text);
    font-size:15px;
    outline:none;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.auth-content input:focus{
    border-color:var(--stc-blue);
    box-shadow:0 0 0 3px rgba(18,103,232,.13);
}

.auth-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    border:0;
    border-radius:var(--stc-radius);
    padding:10px 18px;
    background:var(--stc-navy);
    color:#fff;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
    transition:transform .12s ease,background .12s ease;
}

.auth-button:hover{
    background:#123867;
    transform:translateY(-1px);
}

.auth-button-full{width:100%}

.auth-error{
    background:#fff0f0;
    border:1px solid #e9bcbc;
    color:var(--stc-danger);
    border-radius:var(--stc-radius);
    padding:12px 13px;
    margin:0 0 20px;
}

.auth-success{
    margin-bottom:18px;
    padding:12px;
    border:1px solid #b8d8b8;
    border-radius:7px;
    background:#f4fbf4;
}

.auth-info{
    padding:12px 14px;
    border-radius:var(--stc-radius);
    background:#f2f6fb;
    border-left:4px solid var(--stc-blue);
}

.auth-club{
    margin:7px 0 20px;
    font-size:19px;
    font-weight:900;
    color:var(--stc-navy);
}

.auth-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.auth-subcard{
    border:1px solid var(--stc-border);
    border-radius:12px;
    padding:22px;
    background:#fff;
}

.auth-player-box{
    margin:16px 0;
    padding:14px 16px;
    background:#f2f6fb;
    border-left:4px solid var(--stc-green);
    border-radius:var(--stc-radius);
}

.auth-small{
    font-size:12px;
    color:var(--stc-muted);
}

.auth-footer{
    padding:14px 20px 20px;
    text-align:center;
    color:#8690a0;
    font-size:12px;
}

.auth-brand-stripe{
    display:flex;
    height:4px;
}

.auth-brand-stripe span:nth-child(1){flex:1;background:var(--stc-navy)}
.auth-brand-stripe span:nth-child(2){flex:1;background:var(--stc-blue)}
.auth-brand-stripe span:nth-child(3){flex:1;background:var(--stc-green)}

.auth-form-wrap{
    width:min(560px,100%);
    margin:0 auto;
}

.auth-form-wrap h1{
    text-align:center;
    margin-bottom:6px;
}

.auth-form-wrap .auth-intro{
    text-align:center;
    margin-bottom:24px;
}

.auth-link-row{
    margin-top:18px;
}

.auth-link-row-right{
    margin:-2px 0 16px;
    text-align:right;
}

.auth-subcard-title{
    margin-top:0;
}

.auth-error-spaced{
    margin-top:18px;
}

.role-list{
    display:grid;
    gap:12px;
    margin-top:22px;
}

.role-form{margin:0}

.role-button{
    width:100%;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 18px;
    border:1px solid #d8d8d3;
    border-radius:9px;
    background:#fff;
    color:#111;
    cursor:pointer;
    font:inherit;
    text-align:left;
}

.role-button:hover{border-color:#111}
.role-name{font-weight:800;font-size:16px}
.role-arrow{font-weight:900}

.role-note,
.role-user{
    color:#6f6f69;
}

.role-note{
    margin-top:20px;
    font-size:14px;
    line-height:1.5;
}

.role-user{margin-top:6px}

.simple-auth-page{
    margin:0;
    font-family:var(--stc-font-family);
    background:#f1f1ee;
    color:#202020;
}

.simple-auth-card{
    width:min(620px,calc(100% - 28px));
    margin:60px auto;
    background:#fff;
    border:1px solid #d8d8d3;
    border-radius:12px;
    padding:28px;
}

.simple-auth-action{
    display:inline-block;
    margin-top:14px;
    padding:10px 14px;
    border-radius:7px;
    background:#111;
    color:#fff;
    text-decoration:none;
    font-weight:800;
}

.auth-shell-login{
    width:min(760px,calc(100% - 28px));
    margin:30px auto;
}

.auth-card-login{border-radius:18px}
.auth-brand-login{padding:22px 30px 18px}

.auth-logo-login{
    width:min(610px,94%);
    max-height:220px;
    margin:0 auto 8px;
}

.auth-content-login{padding:30px 34px 18px}
.auth-content-login .auth-field{margin-bottom:16px}
.auth-content-login input{min-height:48px}

.auth-content-login .auth-button{
    min-height:48px;
    margin-top:2px;
}

.auth-footer-login{padding:18px 20px 20px}

@media(max-width:720px){
    .auth-shell,
    .auth-shell.auth-shell-wide{
        margin:20px auto;
    }

    .auth-brand{
        padding:24px 20px 20px;
    }

    .auth-logo{
        width:min(430px,98%);
        max-height:140px;
    }

    .auth-content{
        padding:26px 22px 30px;
    }

    .auth-grid{grid-template-columns:1fr}

    .auth-shell-login{margin:16px auto}
    .auth-brand-login{padding:18px 16px 14px}

    .auth-logo-login{
        width:min(500px,100%);
        max-height:170px;
    }

    .auth-content-login{padding:24px 18px 14px}
    .auth-form-wrap{width:100%}
}
