:root {
    --saem-ink: #172033;
    --saem-muted: #64748b;
    --saem-primary: #2563eb;
    --saem-primary-dark: #1d4ed8;
    --saem-accent: #0f766e;
    --saem-surface: #ffffff;
    --saem-border: #d8e0ec;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f5f7fb;
    color: var(--saem-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.25rem;
}

.auth-card {
    width: min(100%, 420px);
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid var(--saem-border);
    border-radius: 8px;
    background: var(--saem-surface);
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.1);
}

.auth-card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background: var(--saem-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.brand-mark img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.auth-eyebrow {
    margin-bottom: 0.5rem;
    color: var(--saem-accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-card-header h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.85rem, 7vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.auth-card-header p:last-child {
    margin-bottom: 0;
    color: var(--saem-muted);
    line-height: 1.5;
}

.form-label {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-control {
    border-color: #cbd5e1;
    border-radius: 8px;
}

.form-control:focus,
.form-check-input:focus {
    border-color: var(--saem-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.14);
}

.form-check-input:checked {
    border-color: var(--saem-primary);
    background-color: var(--saem-primary);
}

.btn-primary {
    min-height: 48px;
    border-color: var(--saem-primary);
    border-radius: 8px;
    background: var(--saem-primary);
    font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--saem-primary-dark);
    background: var(--saem-primary-dark);
}

.alert {
    border-radius: 8px;
    font-size: 0.95rem;
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-links a {
    color: var(--saem-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover,
.auth-links a:focus {
    color: var(--saem-primary-dark);
    text-decoration: underline;
}

.dashboard-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.dashboard-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 920px);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #172033, #1e40af);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.dashboard-panel h1 {
    margin-bottom: 0.75rem;
    font-weight: 850;
}

.dashboard-panel p:not(.auth-eyebrow) {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
    .auth-shell {
        align-items: flex-start;
        padding-top: 2rem;
    }

    .auth-card {
        box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
    }

    .dashboard-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}
