:root {
    color-scheme: light;
    --ink: #1f211d;
    --muted: #5b6258;
    --paper: rgba(255, 255, 255, 0.84);
    --paper-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(255, 255, 255, 0.5);
    --pine: #203d31;
    --pine-strong: #14291f;
    --gold: #b98a43;
    --error: #8c2f2f;
    --success: #276b4b;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #172019 url("/assets/background.jpeg") center / cover fixed no-repeat;
    color: var(--ink);
}

body::before {
    position: fixed;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(12, 18, 14, 0.58), rgba(12, 18, 14, 0.08) 48%, rgba(12, 18, 14, 0.52)),
        linear-gradient(0deg, rgba(18, 20, 16, 0.34), rgba(18, 20, 16, 0.08));
    pointer-events: none;
}

.portal-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(18px, 5vw, 56px);
}

.portal-panel {
    width: min(100%, 430px);
    padding: clamp(26px, 5vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.brand-mark {
    display: block;
    width: min(168px, 48vw);
    height: auto;
    margin: 0 auto 22px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.copy {
    text-align: center;
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4.5vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--pine-strong);
}

.copy p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

form {
    display: grid;
    gap: 13px;
}

label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pine-strong);
}

input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(32, 61, 49, 0.24);
    border-radius: 6px;
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(185, 138, 67, 0.18);
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--pine);
    color: white;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--pine-strong);
    transform: translateY(-1px);
}

.notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notice-error {
    background: rgba(140, 47, 47, 0.11);
    color: var(--error);
    border: 1px solid rgba(140, 47, 47, 0.22);
}

.notice-success {
    background: rgba(39, 107, 75, 0.12);
    color: var(--success);
    border: 1px solid rgba(39, 107, 75, 0.22);
}

@media (max-width: 560px) {
    body {
        background-position: center top;
    }

    .portal-shell {
        align-items: end;
        padding: 18px;
    }

    .portal-panel {
        padding: 24px;
    }
}
