:root {
    --navy: #142b46;
    --navy-light: #203f61;
    --accent: #8bb9a7;
    --background: #f4f6f9;
    --surface: #ffffff;
    --text: #192b40;
    --muted: #718096;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.brand {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand span {
    color: #438c78;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top right, #e0ebe7, transparent 55%),
        var(--background);
}

.login-card {
    width: min(100%, 440px);
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20, 43, 70, 0.07);
}

.eyebrow {
    margin-top: 28px;
    color: #438c78;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

h1 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -1px;
}

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

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

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

input:focus {
    outline: 2px solid #8bb9a7;
    outline-offset: 1px;
    border-color: #438c78;
}

.primary-button {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--navy-light);
}

.error {
    padding: 12px;
    border: 1px solid #f0c8c8;
    border-radius: 8px;
    background: #fff3f3;
    color: #9b2525;
    font-size: 14px;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(20px, 6vw, 88px);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.topbar-user form {
    margin: 0;
}

.text-button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    color: var(--navy);
    cursor: pointer;
}

.dashboard {
    width: min(1180px, calc(100% - 40px));
    margin: 64px auto;
}

.dashboard .eyebrow {
    margin-top: 0;
}

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

.module-card {
    display: flex;
    min-height: 255px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

a.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 43, 70, 0.08);
}

.module-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    background: #e8f2ee;
    color: #2f715e;
    font-size: 13px;
    font-weight: 800;
}

.module-card h2 {
    margin: 24px 0 4px;
    font-size: 20px;
    line-height: 1.3;
}

.module-card p {
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.card-link {
    margin-top: auto;
    color: #2f715e;
    font-size: 14px;
    font-weight: 700;
}

.coming-soon {
    background: #f9fafb;
}

.coming-label {
    margin-top: auto;
    padding: 5px 10px;
    border-radius: 20px;
    background: #e9edf2;
    color: #536579;
    font-size: 12px;
}

.admin-note {
    margin-top: 32px;
    color: var(--muted);
    font-size: 13px;
}

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

    .dashboard {
        margin-top: 36px;
    }

    .topbar {
        padding: 16px 20px;
    }

    .topbar-user {
        gap: 10px;
    }

    .login-card {
        padding: 28px;
    }
}