:root {
    --student-navy: #12365f;
    --student-blue: #1d5c9e;
    --student-gold: #e5b943;
    --student-bg: #f3f6fb;
}

body {
    color: #1d2b3f;
    background: var(--student-bg);
}

.student-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(229,185,67,.2), transparent 25rem),
        linear-gradient(145deg, #0c2747, #174d82);
}

.student-login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.25rem;
}

.student-login-card {
    width: min(100%, 460px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border-radius: 1.4rem;
    box-shadow: 0 24px 65px rgba(0,0,0,.25);
}

.student-login-brand,
.student-portal-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}

.student-login-brand {
    margin-bottom: 2rem;
    color: var(--student-navy);
}

.student-login-brand img,
.student-portal-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.student-login-brand strong,
.student-login-brand span,
.student-portal-brand strong,
.student-portal-brand small {
    display: block;
}

.student-login-brand strong { font-size: 1.25rem; }
.student-login-brand span { color: #738198; font-size: .8rem; }

.student-portal-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem clamp(1rem, 4vw, 3.5rem);
    color: #fff;
    background: var(--student-navy);
}

.student-portal-brand { color: #fff; }
.student-portal-brand strong { font-size: 1.1rem; }
.student-portal-brand small { color: #c8d8eb; font-size: .75rem; }

.student-portal-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-portal-main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.student-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    background: linear-gradient(120deg, #12365f, #1f65a8);
    border-radius: 1.25rem;
    box-shadow: 0 14px 35px rgba(18,54,95,.18);
}

.student-hero-label,
.student-section-title span {
    color: var(--student-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.student-hero h1 { margin: .35rem 0; font-weight: 800; }
.student-hero p { margin: 0; color: #d5e4f4; }
.student-year-form { width: min(100%, 230px); }
.student-year-form label { margin-bottom: .35rem; font-size: .8rem; font-weight: 700; }

.student-section,
.student-empty {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 1.15rem;
    box-shadow: 0 8px 24px rgba(38,56,81,.06);
}

.student-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-section-title h2 {
    margin: .2rem 0 0;
    color: var(--student-navy);
    font-size: 1.25rem;
    font-weight: 800;
}

.student-grade-table th {
    color: #63748b;
    font-size: .78rem;
    white-space: nowrap;
}

.student-grade-table td:not(:nth-child(2)) { text-align: center; }
.student-grade-table td small { display: block; color: #718096; }
.student-course-cell {
    display: flex;
    min-width: 230px;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.student-detail-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    color: #fff;
    background: var(--student-blue);
    border: 1px solid var(--student-blue);
    border-radius: 0.55rem;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(29, 92, 158, 0.18);
}

.student-detail-button:hover,
.student-detail-button:focus-visible {
    color: #fff;
    background: var(--student-navy);
    border-color: var(--student-navy);
    transform: translateY(-1px);
}
.student-grade-badge {
    display: inline-block;
    padding: .3rem .55rem;
    color: #fff;
    background: #64758b;
    border-radius: .45rem;
    font-size: .75rem;
    font-weight: 700;
}

.student-no-data {
    padding: 2rem !important;
    color: #7a889a;
    text-align: center !important;
}

.student-awards {
    display: grid;
    gap: .75rem;
}

.student-awards article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7f9fc;
    border-radius: .85rem;
}

.student-award-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: #956d08;
    background: #fff1bf;
    border-radius: 50%;
}

.student-awards h3 { margin: .1rem 0; font-size: 1rem; font-weight: 800; }
.student-awards p, .student-awards small { margin: 0; color: #718096; }
.student-empty { padding: 4rem 1.5rem; text-align: center; }
.student-empty i { color: #8190a4; font-size: 3rem; }

.student-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--student-navy);
    font-weight: 700;
    text-decoration: none;
}
.student-back-link:hover { color: var(--student-blue); }
.student-course-hero { align-items: center; }
.student-assessment-count {
    min-width: 130px;
    padding: 1rem 1.25rem;
    text-align: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1rem;
}
.student-assessment-count strong,
.student-assessment-count span { display: block; }
.student-assessment-count strong { font-size: 1.8rem; }
.student-assessment-count span { color: #d5e4f4; font-size: .75rem; }
.student-assessment-table { min-width: 820px; }
.student-type-badge {
    display: inline-block;
    padding: .25rem .5rem;
    color: #385475;
    background: #eaf1f8;
    border-radius: .4rem;
    font-size: .75rem;
    font-weight: 700;
}
.student-score-pill {
    display: inline-block;
    min-width: 68px;
    padding: .35rem .55rem;
    color: #fff;
    background: var(--student-blue);
    border-radius: 999px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .student-portal-user > span { display: none; }
    .student-hero { align-items: stretch; flex-direction: column; }
    .student-assessment-count { width: 100%; }
    .student-year-form { width: 100%; }
    .student-portal-main { width: min(100% - 1rem, 1180px); padding-top: .75rem; }
    .student-grade-table { min-width: 780px; }
    .student-course-cell {
        min-width: 215px;
        align-items: flex-start;
        flex-direction: column;
    }
}
