@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/montserrat-400.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/montserrat-600.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/montserrat-700.ttf") format("truetype");
}

:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #f3f4f6;
    --card: #ffffff;
    --navy: #1b3a6b;
    --line: #e5e7eb;
    --google-line: #dadce0;
    --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.card {
    width: 100%;
    max-width: 400px;
    margin: 0;
    padding: 32px;
    background: var(--card);
    border: 1px solid #eef0f3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
    text-align: center;
}

.logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    display: block;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.5;
    color: var(--muted);
    font-size: 0.875rem;
    margin: 8px 0 0;
}

.lead {
    margin: 8px 0 0;
    color: var(--muted);
}

form {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    text-align: left;
}

label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ink);
}

input, select, button, a.button, a.google {
    font: inherit;
    min-height: 48px;
    border-radius: 8px;
}

input, select {
    width: 100%;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--ink);
}

input::placeholder { color: #9ca3af; }

button, a.button, a.google {
    border: 0;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
}

a.google {
    margin-top: 24px;
    background: #fff;
    color: #1f1f1f;
    font-weight: 600;
    border: 1px solid var(--google-line);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

a.google svg {
    width: 20px;
    height: 20px;
    flex: none;
}

button[type="submit"] { margin-top: 8px; }

button.secondary, a.secondary {
    margin-top: 16px;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
    box-shadow: none;
}

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

a { color: var(--navy); }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.footnote {
    margin-top: 16px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted);
}

.hint { font-size: 0.75rem; }

.actions { margin-top: 24px; }

.error { color: var(--danger); font-weight: 600; }

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    h1 { font-size: 1.375rem; }
}
