:root {
    --brand-dark: #071827;
    --brand-mid: #0f2740;
    --accent: #00b0ff;
    --accent-soft: rgba(0, 176, 255, 0.18);
    --bg-body: #f5f7fb;
    --card-bg: #ffffff;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}


.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-title {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.brand-title span {
    color: var(--accent);
}

.brand-sub {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    padding-bottom: 0.15rem;
    position: relative;
}

.nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
}

.login-page-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.login-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 2rem 2.2rem;
    max-width: 420px;
    width: 100%;
}

.login-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.6rem 0;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

.login-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.login-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid var(--border);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-main);
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.12);
}

.login-button {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: filter 0.15s, transform 0.1s;
}

.login-button:active {
    transform: scale(0.98);
}

.login-button:hover {
    filter: brightness(1.05);
}

.login-footer-text {
    margin-top: 1.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.login-error {
    background: #fee2e2;
    color: #7f1d1d;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
}

/* ── Mobile navigation ──────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: background 0.15s;
}
.nav-hamburger:hover span { background: var(--brand-dark); }

@media (max-width: 640px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a:last-child { border-bottom: none; }

    .top-nav {
        position: relative;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }
}
