:root {
    --bg: #0f1419;
    --panel: #1a2332;
    --border: #2d3a4d;
    --text: #e8eef4;
    --muted: #8b9bb0;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #f87171;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

body a {
    text-decoration: none;
    cursor: pointer;
}

body a:hover {
    cursor: pointer;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 58, 77, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 58, 77, 0.35) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand__logo {
    display: block;
    margin: 0 auto 1rem;
    max-width: 220px;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.brand h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.field {
    margin-bottom: 1.1rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(15, 20, 25, 0.6);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.error {
    margin: -0.35rem 0 0.85rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

button[type="submit"] {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}
