* {
    box-sizing: border-box;
}
:root {
    --bg: #f5f8fd;
    --surface: #ffffff;
    --primary: #1167b1;
    --primary-dark: #0d4f88;
    --secondary: #04a7c9;
    --text: #202a37;
    --muted: #6d7a8d;
    --border: rgba(17,103,177,0.12);
}
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef4fb 100%);
    color: var(--text);
}
.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
}
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar h1 {
    margin: 0;
    font-size: 1.4rem;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-dark);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.3rem;
    border-radius: 0.75rem;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}
.button.secondary {
    background: var(--secondary);
}
.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.2rem;
    margin-top: 2rem;
    box-shadow: 0 20px 60px rgba(24,70,109,0.08);
}
.hero h2 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 3rem);
}
.hero p {
    line-height: 1.7;
    color: var(--muted);
    max-width: 45rem;
}
.welcome {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.features {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.features div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
}
.features h3 {
    margin-top: 0;
}
.form-card {
    max-width: 520px;
    margin: 3rem auto 0;
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(24,70,109,0.08);
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}
input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid #d8e1ee;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
input[type="submit"] {
    width: 100%;
    cursor: pointer;
}
.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #ffefee;
    color: #9f2c2c;
    border: 1px solid rgba(159,44,44,0.12);
}
.footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--muted);
}
@media (max-width: 700px) {
    .topbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero {
        padding: 1.5rem;
    }
}
