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

body {
    min-height: 100vh;
    background: #0f172a;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #f1f5f9;
}

/* ── Login ── */
body:has(.card) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.card h1   { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.card .sub { color: #94a3b8; font-size: .875rem; margin-bottom: 28px; }

label {
    display: block;
    color: #cbd5e1;
    font-size: .8125rem;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: .9375rem;
    outline: none;
    transition: border-color .2s;
}

input:focus { border-color: #6366f1; }

button[type="submit"]:not(.btn-logout) {
    margin-top: 26px;
    width: 100%;
    padding: 11px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

button[type="submit"]:not(.btn-logout):hover { background: #4f46e5; }

.alert {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .875rem;
    margin-bottom: 16px;
}

/* ── Dashboard ── */
header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-weight: 600; font-size: 1rem; }

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #94a3b8;
    font-size: .875rem;
}

.btn-logout {
    background: #334155;
    border: none;
    color: #f1f5f9;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: .875rem;
    cursor: pointer;
    transition: background .2s;
}

.btn-logout:hover { background: #475569; }

main {
    padding: 48px 32px;
    max-width: 900px;
}

main h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
main p  { color: #94a3b8; font-size: .9375rem; }
