:root {
    --bg: #090909;
    --card: #171717;
    --line: #343434;
    --text: #f4f4f4;
    --muted: #a2a2a2;
    --accent: #ffd400;
    --error: #ff8585
}

* {
    box-sizing: border-box
}

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

body {
    min-height: 100vh;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--text);
    background: url(assets/bg.webp) center/cover no-repeat;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px
}

.card {
    width: min(100%, 520px);
    padding: clamp(28px, 6vw, 48px);
    background: rgb(25 25 25);
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45)
}

h1 {
    margin: 0;
    font-size: clamp(27px, 6vw, 40px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.025em
}

.intro {
    margin: 18px 0 28px;
    color: var(--muted);
    line-height: 1.6
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 600
}

input {
    width: 100%;
    border: 1px solid #3b3b3b;
    padding: 14px 15px;
    background: #0d0d0d;
    color: white;
    font: inherit;
    outline: none
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, .1)
}

button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    padding: 15px 18px;
    background: var(--accent);
    color: #090909;
    font: 700 14px "Space Grotesk", sans-serif;
    cursor: pointer;
    transition: transform .15s, filter .15s
}

button:hover {
    filter: brightness(1.08);
}

button:disabled {
    opacity: .7;
    cursor: wait;
    transform: none
}

.message {
    margin: 15px 0 0;
    padding: 12px 14px;
    background: rgba(255, 40, 40, .1);
    color: var(--error);
    font-size: 13px;
    line-height: 1.5
}

.event {
    border-top: 1px solid var(--line);
    margin: 30px 0 0;
    padding-top: 20px;
    color: #777;
    font-size: 11px;
    line-height: 1.6
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, .25);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}