:root {
    color-scheme: light;
    --navy: #123b62;
    --blue: #1769aa;
    --light: #f2f6fa;
    --text: #203247;
    --muted: #6b7c8f;
    --border: #dce5ed;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--light);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, #dcebf7, transparent 42%),
        linear-gradient(135deg, #edf3f8, #f8fafc);
}

.login-card {
    width: min(100%, 430px);
    background: var(--white);
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(25, 55, 85, .10);
}

.brand-mark {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--navy);
    color: white;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 1px;
}

.institution {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    margin-top: 25px;
}

h1 {
    color: var(--navy);
    margin-bottom: 8px;
}

.muted {
    color: var(--muted);
}

form label {
    display: block;
    margin: 20px 0 7px;
    font-weight: 650;
    font-size: 14px;
}

input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 15px;
    background: white;
}

input:focus {
    outline: 2px solid #9bc9ec;
    border-color: var(--blue);
}

button {
    width: 100%;
    min-height: 47px;
    margin-top: 23px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: var(--blue);
}

.login-card footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.alert {
    padding: 13px 15px;
    border-radius: 9px;
    background: #fff3e5;
    color: #8a4a08;
    border: 1px solid #f0d4b3;
    margin: 18px 0;
    line-height: 1.5;
}

.topbar {
    min-height: 74px;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--navy);
    color: white;
}

.topbar strong {
    font-size: 20px;
    margin-right: 15px;
}

.topbar span {
    font-size: 13px;
    opacity: .85;
}

.topbar form {
    margin: 0;
}

.topbar .logout {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 8px 17px;
    background: #ffffff;
    color: var(--navy);
}

.dashboard {
    width: min(1180px, 92%);
    margin: 42px auto;
}

.welcome {
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.module-card,
.access-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 5px 18px rgba(25, 55, 85, .04);
}

.module-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e8f1f8;
    color: var(--blue);
    font-weight: 800;
}

.module-card h2 {
    color: var(--navy);
    font-size: 19px;
}

.module-card p {
    color: var(--muted);
    line-height: 1.6;
    min-height: 70px;
}

.module-status {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.access-section {
    margin-top: 24px;
}

.access-section h2 {
    color: var(--navy);
}

.access-section h3 {
    font-size: 15px;
    margin-top: 25px;
}

.access-section li {
    margin: 8px 0;
}

.dashboard-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--muted);
    font-size: 12px;
}

.error-shell {
    width: min(600px, 92%);
    margin: 12vh auto;
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

@media (max-width: 760px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-card p {
        min-height: auto;
    }

    .login-card {
        padding: 27px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 5%;
    }
}
