
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat',sans-serif;
    background:
        radial-gradient(circle at top,#FFF9EF 0,#FCFBF8 42%,#EFE6D8 100%);
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:28px 16px;
}

.card{
    width:min(100%,520px);
    background:white;
    border:1px solid #EEE5DA;
    border-radius:26px;
    padding:42px 44px 34px;
    box-shadow:0 24px 70px rgba(75,52,32,.10);
}

.logo{
    text-align:center;
    color:#B89B5E;
    font-size:14px;
    font-weight:700;
    letter-spacing:7px;
    margin-bottom:20px;
}

h1{
    text-align:center;
    color:#2E2A28;
    font-size:38px;
    line-height:1;
    margin-bottom:12px;
}

.subtitle{
    text-align:center;
    color:#8B8682;
    margin-bottom:26px;
    font-size:15px;
}

.role-switch{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
    margin-bottom:24px;
    padding:10px;
    border:1px solid #ECE2D8;
    border-radius:20px;
    background:#FCFBF8;
}

.role-switch label{
    display:block;
    width:100%;
    margin:0;
}

.role-switch input{
    display:none;
}

.role-switch span{
    width:100%;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border:1px solid #ECE2D8;
    border-radius:16px;
    background:#FFFDF9;
    color:#2E2A28;
    text-align:center;
    font-weight:800;
    font-size:13px;
    line-height:1.15;
    cursor:pointer;
    transition:.2s;
}

.role-switch input:checked + span{
    border-color:#35272A;
    background:#35272A;
    color:white;
    box-shadow:0 9px 20px rgba(53,39,42,.18);
}

label{
    display:block;
    margin-bottom:9px;
    color:#5F5753;
    font-size:13px;
    font-weight:800;
}

input{
    width:100%;
    height:54px;
    padding:0 16px;
    border:1px solid #E2D8CE;
    border-radius:14px;
    font-size:15px;
    margin-bottom:18px;
    background:#FFFDF9;
    color:#2E2A28;
    transition:.2s;
    appearance:none;
}

input:focus{
    outline:none;
    border-color:#35272A;
    box-shadow:0 0 0 4px rgba(53,39,42,.08);
    background:#fff;
}

button{
    width:100%;
    min-height:56px;
    border:none;
    border-radius:14px;
    padding:0 18px;
    cursor:pointer;
    background:#35272A;
    color:white;
    font-size:16px;
    font-weight:850;
    transition:.25s;
    box-shadow:0 14px 26px rgba(53,39,42,.16);
}

button:hover{
    background:#631d20;
    transform:translateY(-1px);
}

.student-guide-link,
.parent-guide-link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    margin-top:14px;
    border:1px solid #F3F0F1;
    border-radius:14px;
    background:#FFFDF9;
    color:#35272A;
    text-decoration:none;
    font-size:13px;
    font-weight:850;
    transition:.2s;
}

.student-guide-link[hidden],
.parent-guide-link[hidden]{
    display:none;
}

.student-guide-link:hover,
.parent-guide-link:hover{
    background:#F6EFE7;
    border-color:#F3F0F1;
}

.footer{
    text-align:center;
    margin-top:25px;
    color:#AAA;
    font-size:12px;
}

.error{
    background:#F3F0F1;
    color:#35272A;
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    text-align:center;
    font-weight:600;
}

@media(max-width:560px){
    body{
        align-items:flex-start;
        padding:18px 12px;
    }

    .card{
        padding:30px 18px 26px;
        border-radius:22px;
    }

    .logo{
        letter-spacing:5px;
        font-size:12px;
    }

    h1{
        font-size:32px;
    }

    .role-switch{
        grid-template-columns:1fr;
    }

    .role-switch span{
        min-height:42px;
    }
}


/* =========================================================
   SA | SCHOOL — global card contrast pass v40 (2026-08-17)
   Keep the workspace almost white, but separate cards clearly.
   ========================================================= */
:root{
    --sas-surface:#FFFFFF !important;
    --fv-card:#FFFFFF !important;
    --sa-editor-paper:#FFFFFF !important;
    --card:#FFFFFF;
    --surface:#FFFFFF;
    --paper:#FFFFFF;
    --sas-border:rgba(53,39,42,.18) !important;
    --sas-border-soft:rgba(53,39,42,.12) !important;
    --fv-line:#F3F0F1 !important;
}

:where(
    .card,
    [class$="-card"],
    [class$="_card"],
    [class$="-panel"],
    [class$="_panel"],
    [class$="-box"],
    [class$="_box"],
    [class$="-tile"],
    [class$="_tile"],
    [class$="-sheet"],
    [class$="_sheet"],
    [class$="-summary"],
    [class$="_summary"]
){
    border-color:rgba(184,155,94,.27) !important;
    box-shadow:0 10px 28px rgba(75,54,36,.075) !important;
}

/* Main neutral workspace cards should read as white paper. */
body:has(.teacher-sidebar) :where(
    .teacher-dashboard-summary,
    .teacher-calendar-card,
    .student-card,
    .dashboard-card,
    .card
),
body:has(.student-cabinet-sidebar) :where(
    .student-card,
    .student-next-lesson-card,
    .student-dashboard-week-card,
    .student-dashboard-schedule,
    .dashboard-card,
    .card
){
    background-color:#FFFFFF !important;
}

/* Preserve a soft, expensive hover rather than a harsh outline. */
:where(.card,[class$="-card"],[class$="_card"]):hover{
    box-shadow:0 13px 32px rgba(75,54,36,.095) !important;
}
