/* Kickoff Quiz bridge pages — verify-email + reset-password.
   Football-themed: pitch-green accents, subtle stripe pattern, sporty typography. */

:root {
    --pitch-green: #2DAD66;
    --pitch-green-dark: #228856;
    --pitch-green-darker: #176641;
    --night: #0a1f17;
    --night-elevated: #102a20;
    --night-card: #14352a;
    --fg: #f0fdf4;
    --fg-muted: #86c5a3;
    --border: rgba(45, 173, 102, 0.22);
    --border-strong: rgba(45, 173, 102, 0.45);
    --danger: #ef4444;
    --danger-soft: #fca5a5;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 173, 102, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--fg);
    background: var(--night);
    -webkit-font-smoothing: antialiased;
}

/* Football pitch background — subtle horizontal stripes (mowing pattern) + radial spotlight. */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 100vh;       /* fallback dla starych przeglądarek */
    min-height: 100dvh;      /* iOS Safari — liczy tylko widoczną strefę bez address bara */
    background:
        radial-gradient(ellipse at 50% 0%, rgba(45, 173, 102, 0.18) 0%, transparent 55%),
        repeating-linear-gradient(
            180deg,
            var(--night) 0,
            var(--night) 60px,
            #0c2519 60px,
            #0c2519 120px
        );
    position: relative;
    overflow-x: hidden;
}

/* Centre-circle hint behind the card */
body::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(45, 173, 102, 0.08);
    pointer-events: none;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    background: var(--night-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 26px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Top brand block — football icon + uppercase wordmark */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--pitch-green);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(45, 173, 102, 0.08);
}
.brand .ball {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, #ffffff 30%, transparent 32%),
        conic-gradient(from 0deg, #ffffff 0deg, #0a1f17 18deg, #ffffff 36deg, #0a1f17 54deg,
                        #ffffff 72deg, #0a1f17 90deg, #ffffff 108deg, #0a1f17 126deg,
                        #ffffff 144deg, #0a1f17 162deg, #ffffff 180deg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 8px rgba(45, 173, 102, 0.5);
}

h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--fg);
}

p {
    color: var(--fg-muted);
    margin-bottom: 16px;
}

.status-icon {
    font-size: 64px;
    margin-bottom: 18px;
    line-height: 1;
    display: inline-block;
}
.status-icon.success {
    color: var(--pitch-green);
    text-shadow: 0 0 24px rgba(45, 173, 102, 0.55);
}
.status-icon.error {
    color: var(--danger);
    text-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
}

/* Spinner */
.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 24px;
    border: 3px solid rgba(45, 173, 102, 0.15);
    border-top-color: var(--pitch-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form */
form {
    text-align: left;
    margin-top: 22px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
input[type="password"], input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--night);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font-size: 15px;
    margin-bottom: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
    outline: none;
    border-color: var(--pitch-green);
    box-shadow: 0 0 0 3px rgba(45, 173, 102, 0.18);
}
.field-error {
    color: var(--danger-soft);
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 12px;
}

button.cta {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: var(--pitch-green);
    color: var(--night);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(45, 173, 102, 0.35);
}
button.cta:hover { background: var(--pitch-green-dark); }
button.cta:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(45, 173, 102, 0.25); }
button.cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

a.secondary {
    display: inline-block;
    margin-top: 12px;
    color: var(--fg-muted);
    font-size: 13px;
    text-decoration: underline;
}

.hidden { display: none !important; }
