:root {
    --navy: #0a3155;
    --blue: #0f4c81;
    --blue-soft: #eaf4ff;
    --sky: #f5f9fd;
    --ink: #183246;
    --muted: #687d8d;
    --line: #dce8f1;
    --white: #ffffff;
    --success: #19724a;
    --success-soft: #e8f7ef;
    --danger: #a93838;
    --danger-soft: #fff0f0;
    --warning: #8a5a00;
    --shadow: 0 24px 70px rgba(23, 62, 94, 0.14);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--sky);
}

body {
    min-height: 100vh;
    margin: 0;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.auth-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(110, 190, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #082f53 0%, #0f4c81 55%, #1876b9 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 8vw, 120px);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -210px;
    bottom: -230px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, 0.08);
}

.brand-mark,
.mobile-brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ffffff, #cfeaff);
    color: var(--blue);
    box-shadow: 0 18px 45px rgba(1, 28, 52, 0.2);
}

.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 30px;
    margin-bottom: 42px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4f88b4;
}

.auth-brand-panel .eyebrow {
    color: #bfe4ff;
}

.auth-brand-panel h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.brand-copy {
    max-width: 610px;
    margin: 28px 0 40px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

.brand-status,
.sidebar-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5ee6a8;
    box-shadow: 0 0 0 5px rgba(94, 230, 168, 0.14);
}

.auth-card-panel {
    display: grid;
    place-items: center;
    padding: 36px;
    background: rgba(247, 251, 255, 0.98);
    border-radius: 42px 0 0 42px;
}

.auth-card {
    width: min(100%, 470px);
    padding: 34px 18px;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 42px;
}

.mobile-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
}

.mobile-brand strong,
.sidebar-brand strong {
    display: block;
    font-size: 15px;
}

.mobile-brand small,
.sidebar-brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.auth-heading h2,
.simple-card h1,
.dashboard-topbar h1,
.welcome-card h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.auth-heading h2 {
    font-size: 36px;
}

.auth-heading p:not(.eyebrow) {
    margin: 10px 0 30px;
    color: var(--muted);
    line-height: 1.6;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-info {
    color: var(--blue);
    background: var(--blue-soft);
}

.alert-error {
    color: var(--danger);
    background: var(--danger-soft);
}

.alert-success {
    color: var(--success);
    background: var(--success-soft);
}

.auth-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span:first-child {
    font-size: 13px;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
    border-color: #4b91c7;
    box-shadow: 0 0 0 4px rgba(67, 142, 199, 0.13);
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 74px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    padding: 8px 10px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-button {
    min-height: 55px;
    margin-top: 4px;
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #1674b8);
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.2);
}

.secondary-button {
    min-height: 48px;
    padding: 0 20px;
    color: var(--blue);
    border: 1px solid #bdd5e7;
    background: var(--white);
}

.ghost-button {
    min-height: 42px;
    padding: 0 17px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--white);
}

.auth-secondary {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.auth-secondary p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.auth-secondary a {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-footnote {
    margin: 24px 0 0;
    text-align: center;
    color: #8a9aa6;
    font-size: 12px;
    line-height: 1.5;
}

.simple-page {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top, #e4f3ff, transparent 40%),
        var(--sky);
}

.simple-shell {
    width: min(100%, 740px);
}

.simple-shell .mobile-brand {
    display: inline-flex;
}

.simple-card {
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid rgba(185, 210, 229, 0.8);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.simple-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    border-radius: 18px;
    background: var(--blue-soft);
    font-size: 25px;
}

.simple-card h1 {
    max-width: 600px;
    font-size: clamp(30px, 5vw, 48px);
}

.simple-card > p:not(.eyebrow, .simple-note) {
    margin: 20px 0 28px;
    color: var(--muted);
    line-height: 1.75;
}

.notice-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.notice-list div {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff;
}

.notice-list strong,
.notice-list span {
    display: block;
}

.notice-list strong {
    font-size: 14px;
}

.notice-list span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.simple-note {
    margin: 25px 0;
    padding: 16px;
    border-radius: 13px;
    color: var(--warning);
    background: #fff7df;
    line-height: 1.6;
}

.dashboard-page {
    background: #f3f7fb;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 20px;
    color: var(--white);
    background: linear-gradient(180deg, #092f52, #0d426f);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 27px;
    color: var(--white);
    text-decoration: none;
}

.sidebar-brand small {
    color: #b6d5ed;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #d5e8f7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.nav-item.disabled {
    opacity: 0.55;
}

.nav-item span {
    width: 22px;
    text-align: center;
}

.sidebar-status {
    margin-top: auto;
    padding: 15px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    color: #d3e7f7;
    line-height: 1.5;
}

.dashboard-main {
    padding: 32px clamp(24px, 5vw, 64px) 58px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-topbar h1 {
    font-size: clamp(27px, 4vw, 40px);
}

.welcome-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        radial-gradient(circle at 90% 20%, rgba(126, 211, 255, 0.32), transparent 30%),
        linear-gradient(135deg, #0b3d68, #0e69a4);
    box-shadow: 0 22px 48px rgba(24, 88, 134, 0.18);
}

.welcome-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #dff4ff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-card h2 {
    font-size: clamp(28px, 4vw, 46px);
}

.welcome-card p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.welcome-illustration {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 42px;
    color: var(--blue);
    background: linear-gradient(145deg, #ffffff, #d8f0ff);
    font-size: 64px;
    transform: rotate(7deg);
}

.student-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.student-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 17px;
    color: var(--white);
    background: linear-gradient(145deg, var(--blue), #37a0d7);
    font-weight: 900;
}

.student-identity {
    min-width: 0;
    flex: 1;
}

.student-identity span,
.student-identity strong,
.student-identity small {
    display: block;
}

.student-identity span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-identity strong {
    margin-top: 4px;
    font-size: 17px;
}

.student-identity small {
    margin-top: 4px;
    color: var(--muted);
}

.pending-chip {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--success);
    background: var(--success-soft);
    font-size: 11px;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.summary-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 900;
}

.summary-card p {
    margin: 22px 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.summary-card strong {
    display: block;
    font-size: 21px;
}

.summary-card small {
    display: block;
    margin-top: 10px;
    color: #8a9aa6;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-card-panel {
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-card {
        padding: 14px 0;
    }

    .mobile-brand {
        display: flex;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        padding: 15px 20px;
    }

    .sidebar-nav,
    .sidebar-status {
        display: none;
    }

    .sidebar-brand {
        padding: 0;
    }

    .dashboard-main {
        padding-top: 25px;
    }
}

@media (max-width: 700px) {
    .auth-card-panel,
    .simple-page {
        padding: 22px;
    }

    .auth-heading h2 {
        font-size: 31px;
    }

    .notice-list,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        grid-template-columns: 1fr;
    }

    .welcome-illustration {
        display: none;
    }

    .student-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pending-chip {
        margin-left: 68px;
    }

    .dashboard-topbar {
        align-items: flex-start;
    }
}
