:root {
    --bg: #EEF0EC;
    --surface: #FFFFFF;
    --ink: #22282A;
    --muted: #6B7370;
    --hairline: #D9DDD6;
    --p1: #35625A;
    --p2: #A6592F;
    --solid-bg: #22282A;
    --solid-fg: #FFFFFF;
    --error-bg: #C0392B14;
    --error-fg: #9B2C1F;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: #EEF0EC;
    background-image:
        linear-gradient(rgba(238, 240, 236, 0.75), rgba(238, 240, 236, 0.75)),
        url("https://deleunger.dk/_images/Fil%2029-08-2017%2009.02.11.jpg");
    background-repeat: repeat;
    background-size: auto, 220px;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hairline);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.12);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.auth-brand span {
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.auth-card h1 {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.auth-card .subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.auth-errors {
    background: var(--error-bg);
    color: var(--error-fg);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.auth-errors p { margin: 0; }
.auth-errors p + p { margin-top: 0.35rem; }

.field {
    margin-bottom: 1.25rem;
}
.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.field input {
    width: 100%;
    font: inherit;
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: 0.7rem;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
    outline: none;
    border-color: var(--p1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--p1) 20%, transparent);
}
.field .hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.auth-submit {
    width: 100%;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--solid-fg);
    background: var(--solid-bg);
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
.auth-submit:hover { opacity: 0.92; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.auth-footer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.auth-note {
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: 0.7rem;
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
