:root {
    --blue: #1A4F9C;
    --blue-dark: #0F3370;
    --blue-light: #EBF2FC;
    --text: #1C1C1E;
    --muted: #6B7280;
    --border: #DDE3ED;
    --white: #FFFFFF;
    --bg: #F4F6FA;
    --error: #DC2626;
    --green: #16A34A;
    --green-light: #DCFCE7;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --orange: #D97706;
    --orange-light: #FEF3C7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 3px solid var(--blue);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.brand-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.25;
}

.brand-text p {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.header-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    padding: 0.45rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.2rem 5%;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-credit {
    font-size: 0.78rem;
    color: var(--muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-logout:hover {
    color: var(--red);
    background: var(--red-light);
}

.btn-logout svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-logout:hover svg {
    transform: translateX(2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
    .form-card {
        padding: 1.6rem 1.4rem;
    }

    .header-title {
        display: none !important;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .btn-logout{
        position: absolute;
        right: 0;
    }
}