:root{
    --auth-surface:#ffffff;
    --auth-text:#333333;
    --auth-muted:#7a8498;
    --auth-border:#ccd9ee;
    --auth-accent:#4abc99;
    --auth-accent-hover:#3cad8d;
    --auth-blue:#5e89ee;
}

body.public-home-page{
    min-height:100vh;
    margin:0;
    padding:92px 18px 32px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--auth-text);
    background:#fbfcfc;
    overflow-x:hidden;
}

.login-bg-art{
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    pointer-events:none;
    background:linear-gradient(90deg,#fbfbfb 0%,#ffffff 67%,#eefbff 100%);
}

.login-bg-art:before{
    content:"";
    position:absolute;
    left:41%;
    top:-304px;
    width:640px;
    height:430px;
    border-radius:50%;
    background:linear-gradient(90deg,#ecfdfb 0%,rgba(236,253,251,0) 100%);
    opacity:.72;
}

.login-bg-art:after{
    content:"";
    position:absolute;
    right:-300px;
    bottom:-312px;
    width:680px;
    height:680px;
    border-radius:50%;
    background:linear-gradient(180deg,#c7fbf6 0%,#f1fcfa 50%,#f1fcfa 100%);
    opacity:.58;
}

.login-bg-art__ring{
    position:absolute;
    left:0;
    top:33vh;
    width:322px;
    height:322px;
    border-radius:50%;
    background:linear-gradient(135deg,#b7faf0 0%,rgba(183,250,240,0) 76%,rgba(183,250,240,0) 100%);
    -webkit-mask-image:radial-gradient(circle,transparent 0 31%,#000 31.3% 50%,transparent 50.3%);
    mask-image:radial-gradient(circle,transparent 0 31%,#000 31.3% 50%,transparent 50.3%);
    opacity:.7;
}

.login-bg-art__grid{display:none}

body.public-home-page .auth-shell,
body.public-home-page .student-shell,
body.public-home-page .admin-login-shell{
    position:relative;
    z-index:1;
    width:min(1280px,calc(100vw - 72px));
    min-height:640px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 460px;
    gap:92px;
    align-items:center;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    overflow:visible;
}

body.public-home-page .auth-copy,
body.public-home-page .student-copy,
body.public-home-page .admin-login-copy{
    position:relative;
    min-width:0;
    padding:0;
    color:var(--auth-text);
    background:transparent;
}

body.public-home-page .auth-copy:after{content:none}

.auth-brand-lockup,
.student-logo-lockup,
.admin-login-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 30px;
    color:#222222;
}

.auth-brand-mark,
.student-logo-mark,
.admin-login-logo img{
    width:42px;
    height:52px;
    border-radius:0;
    object-fit:contain;
    background:transparent;
    padding:0;
    box-shadow:none;
}

.auth-brand-text strong,
.student-logo-text strong,
.admin-login-logo strong{
    display:block;
    color:#222222;
    font-size:19px;
    line-height:1.1;
    font-weight:500;
    transform:skewX(-6deg);
}

.auth-brand-text span,
.student-logo-text span,
.admin-login-logo span{
    display:none;
}

body.public-home-page .auth-copy h1,
body.public-home-page .student-copy h1,
body.public-home-page .admin-login-copy h1{
    margin:0;
    color:#333333;
    font-size:46px;
    font-weight:600;
    line-height:1.08;
    letter-spacing:0;
    white-space:nowrap;
}

body.public-home-page .auth-copy p,
body.public-home-page .student-copy p,
body.public-home-page .admin-login-copy p{
    margin:28px 0 0;
    max-width:600px;
    color:#555555;
    font-size:18px;
    line-height:1.8;
    font-weight:300;
}

body.public-home-page .student-copy small,
body.public-home-page .admin-login-copy small{
    display:inline-flex;
    margin:0 0 20px;
    padding:7px 11px;
    border-radius:999px;
    background:#eff6ff;
    color:#2563eb;
    font-size:12px;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.student-points,
.admin-login-points{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    max-width:650px;
}

.student-point,
.admin-login-point{
    min-height:44px;
    display:flex;
    align-items:center;
    padding:10px 12px;
    border-radius:10px;
    background:rgba(255,255,255,.72);
    color:#475569;
    font-size:13px;
    line-height:1.4;
    font-weight:500;
    box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.login-preview-stage{
    position:relative;
    z-index:1;
    width:100%;
    margin:48px 0 0;
}

.login-preview-shell{
    position:relative;
    width:min(600px,100%);
}

.login-preview-outline{
    position:absolute;
    left:-38px;
    top:-46px;
    width:766px;
    max-width:calc(100% + 96px);
    height:500px;
    z-index:0;
    overflow:visible;
    pointer-events:none;
}

.login-preview-card{
    position:relative;
    z-index:1;
    width:min(600px,100%);
    height:auto;
    min-height:310px;
    padding:14px;
    border-radius:24px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 44px rgba(15,23,42,.10);
    overflow:hidden;
}

.login-preview-inner{
    width:100%;
    height:100%;
    border-radius:20px;
    overflow:hidden;
}

.login-preview-inner img{
    display:block;
    width:100%;
    height:auto;
}

body.public-home-page .auth-card,
body.public-home-page .student-card,
body.public-home-page .admin-login-card{
    width:100%;
    padding:42px 40px 32px;
    border:1px solid rgba(216,226,242,.72);
    border-radius:24px;
    background:rgba(255,255,255,.95);
    box-shadow:0 14px 38px rgba(15,23,42,.06);
    backdrop-filter:blur(12px);
}

.auth-card-head,
.student-card h2,
.admin-login-card h2{
    margin-bottom:24px;
}

.auth-card-head h2,
.student-card h2,
.admin-login-card h2{
    margin:0;
    color:#333333;
    font-size:32px;
    font-weight:500;
    line-height:1.2;
    letter-spacing:0;
}

.auth-card-head p,
.student-card-sub,
.admin-login-sub{
    margin:10px 0 0;
    color:#7a8498;
    font-size:14px;
    line-height:1.7;
}

.panel h3{display:none}

.login-form,
.auth-card form,
.student-card form,
.admin-login-card form{
    display:grid;
    gap:18px;
}

.field{
    margin:0;
}

.field label{
    display:block;
    margin:0 0 8px;
    color:#475569;
    font-size:14px;
    font-weight:500;
}

.field input,
.field select,
.phone-row input,
.phone-row select{
    width:100%;
    height:52px;
    padding:0 18px;
    border:1px solid var(--auth-border);
    border-radius:10px;
    background-color:#fff;
    color:#424952;
    font-size:15px;
    font-weight:500;
    outline:none;
    box-shadow:none;
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.field input::placeholder,
.phone-row input::placeholder{color:#bcc8db}

.field input:focus,
.field select:focus,
.phone-row input:focus,
.phone-row select:focus{
    border-color:#39bb9f;
    box-shadow:0 0 0 3px rgba(74,188,153,.12);
    transform:none;
}

.phone-row{
    display:grid;
    grid-template-columns:112px 1fr;
    gap:12px;
}

.send-row{
    display:grid;
    grid-template-columns:1fr 122px;
    gap:12px;
    align-items:end;
}

.send-row input{min-width:0}

.send-btn,
.btn-secondary{
    height:52px;
    padding:0 14px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#f8fafc;
    color:#64748b;
    font-size:14px;
    font-weight:400;
    cursor:pointer;
    box-shadow:none;
    transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.send-btn:hover,
.btn-secondary:hover{
    background:#eef2f7;
    border-color:#b8c6d9;
    color:#475569;
}

.send-btn:disabled,
.btn-secondary:disabled{
    opacity:.62;
    cursor:not-allowed;
}

.submit-btn,
.btn-primary{
    width:100%;
    height:52px;
    margin-top:10px;
    padding:0 16px;
    border:none;
    border-radius:10px;
    background:var(--auth-accent);
    color:#fff;
    font-size:16px;
    font-weight:500;
    cursor:pointer;
    box-shadow:none;
    transition:background-color .18s ease,transform .18s ease;
}

.submit-btn:hover,
.btn-primary:hover{background:var(--auth-accent-hover)}

.submit-btn:active,
.btn-primary:active{background:#359f82;transform:translateY(1px)}

.login-agreement{
    margin:0;
    color:#7a8498;
    font-size:13px;
    line-height:1.5;
}

.login-agreement a,
.panel-links a,
.footer a,
.footer-links a,
.student-links a,
.admin-login-links a{
    color:#3dbc9f;
    text-decoration:none;
    font-weight:500;
}

.panel-links,
.footer,
.student-links,
.admin-login-links{
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    color:#7a8498;
    font-size:14px;
    line-height:1.4;
}

.student-entry,
.auth-legal-links,
.auth-beian-links,
.footer-links,
.admin-login-note{
    margin-top:18px;
    color:#7a8498;
    font-size:13px;
    line-height:1.6;
}

.student-entry{
    padding:14px 15px;
    border-radius:12px;
    background:#f8fafc;
}

.student-entry a{
    display:inline-flex;
    margin-top:8px;
    color:#3dbc9f;
    text-decoration:none;
    font-weight:500;
}

.student-reset-link{
    margin-top:18px;
    display:flex;
    justify-content:flex-end;
    color:#7a8498;
    font-size:14px;
    line-height:1.4;
}

.student-reset-link a{
    color:#3dbc9f;
    text-decoration:none;
    font-weight:500;
}

.auth-legal-links,
.auth-beian-links,
.footer-links{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.auth-beian-links a,
.auth-legal-links a,
.footer-links a{
    color:#8a8f93;
    font-weight:400;
    text-decoration:underline;
    text-underline-offset:3px;
}

.error-message,
.error,
.banner.error{
    margin:0 0 16px;
    padding:12px 14px;
    border-radius:12px;
    background:#fff1f1;
    color:#a42828;
    font-size:14px;
    line-height:1.6;
}

.banner.info,
.registration-closed,
.unsupported-card,
.masked-phone{
    padding:12px 14px;
    border-radius:12px;
    background:#f4fbf8;
    color:#5f766f;
    font-size:14px;
    line-height:1.6;
}

.status-line{
    min-height:0;
    margin:0;
    color:#7a8498;
    font-size:13px;
    line-height:1.5;
}

.field-hint{
    min-height:0;
    margin-top:6px;
    color:#7a8498;
    font-size:12px;
    line-height:1.5;
}

.agreement-row{
    display:flex;
    align-items:flex-start;
    gap:9px;
    color:#7a8498;
    font-size:13px;
    line-height:1.5;
}

.agreement-row input{
    margin-top:3px;
}

.captcha-modal{
    z-index:99990;
}

.auth-admin-page .auth-shell,
.auth-admin-page .admin-login-shell{
    grid-template-columns:minmax(0,1fr) 430px;
}

.auth-admin-page .admin-login-copy small{
    background:#fef3c7;
    color:#92400e;
}

@media (max-width:1100px){
    body.public-home-page .auth-shell,
    body.public-home-page .student-shell,
    body.public-home-page .admin-login-shell{
        width:min(760px,calc(100vw - 48px));
        min-height:0;
        grid-template-columns:1fr;
        gap:28px;
        padding:20px 0 34px;
    }
    .login-preview-stage{display:none}
    .student-points,.admin-login-points{grid-template-columns:1fr}
}

@media (max-width:640px){
    body.public-home-page{
        min-height:100dvh;
        padding:24px 18px;
        align-items:stretch;
        justify-content:flex-start;
        overflow:auto;
    }
    body.public-home-page .auth-shell,
    body.public-home-page .student-shell,
    body.public-home-page .admin-login-shell{
        width:100%;
        padding:0;
        gap:18px;
    }
    body.public-home-page .auth-copy h1,
    body.public-home-page .student-copy h1,
    body.public-home-page .admin-login-copy h1{
        font-size:30px;
        white-space:normal;
    }
    body.public-home-page .auth-copy p,
    body.public-home-page .student-copy p,
    body.public-home-page .admin-login-copy p{
        margin-top:12px;
        font-size:14px;
        line-height:1.7;
    }
    .auth-brand-lockup,
    .student-logo-lockup,
    .admin-login-logo{
        margin-bottom:18px;
    }
    body.public-home-page .auth-copy,
    body.public-home-page .student-copy,
    body.public-home-page .admin-login-copy{
        min-height:150px;
        padding-right:43%;
    }
    .login-preview-stage{
        display:block;
        position:absolute;
        right:-4px;
        top:6px;
        width:42%;
        margin:0;
        pointer-events:none;
    }
    .login-preview-shell,
    .login-preview-card{
        width:100%;
        min-height:0;
        padding:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
        overflow:visible;
    }
    .login-preview-outline{display:none}
    .login-preview-inner{
        border-radius:0;
        overflow:visible;
    }
    .login-preview-inner img{
        width:100%;
        height:auto;
    }
    body.public-home-page .auth-card,
    body.public-home-page .student-card,
    body.public-home-page .admin-login-card{
        padding:24px 18px;
        border-radius:18px;
    }
    .auth-card-head h2,
    .student-card h2,
    .admin-login-card h2{
        font-size:24px;
    }
    .phone-row,
    .send-row{
        grid-template-columns:1fr;
    }
    .send-btn,.btn-secondary{
        width:100%;
    }
    .panel-links,
    .footer,
    .student-links,
    .admin-login-links{
        align-items:flex-start;
        flex-direction:column;
    }
    .auth-legal-links,
    .auth-beian-links,
    .footer-links{
        justify-content:flex-start;
    }
    .login-bg-art:before{left:-76px;top:70px;width:250px;height:250px;opacity:.42}
    .login-bg-art:after{right:-220px;top:-80px;bottom:auto;width:520px;height:520px;opacity:.22}
    .login-bg-art__ring{display:none}
}
