/* SignalGrid — Auth surface
 * Matches marketing dark palette (cream ink on warm dark bg, coral accent)
 * so users who arrive from the map hero don't hit a jarring white login.
 */


:root {
    --auth-bg:          #141210;
    --auth-surface:     rgba(29, 26, 21, 0.85);
    --auth-border:      #2a2720;
    --auth-border-2:    #4a453a;
    --auth-ink:         #f5f1e6;
    --auth-ink-2:       #a8a095;
    --auth-ink-3:       #9b9384;
    --auth-accent:      #e06060;
    --auth-accent-2:    #f08080;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: 'Space Grotesk Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

.auth-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(224, 96, 96, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(224, 96, 96, 0.05), transparent 60%),
        var(--auth-bg);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 241, 230, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 241, 230, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

.auth-wordmark {
    position: absolute;
    top: 32px;
    left: 40px;
    font-family: 'Unbounded Variable', 'Space Grotesk Variable', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--auth-ink);
    text-decoration: none;
    z-index: 2;
}
.auth-wordmark:hover { color: var(--auth-accent); }

.auth-back {
    position: absolute;
    top: 36px;
    right: 40px;
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-ink-3);
    text-decoration: none;
    z-index: 2;
    transition: color 150ms ease;
}
.auth-back:hover { color: var(--auth-ink); }

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--auth-surface);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--auth-border-2);
    border-radius: 8px;
    box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.75);
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-accent);
    margin-bottom: 20px;
}

.auth-kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-accent);
    box-shadow: 0 0 0 0 var(--auth-accent);
    animation: auth-pulse 2.4s ease-out infinite;
}

@keyframes auth-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(224, 96, 96, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(224, 96, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 96, 96, 0); }
}

.auth-title {
    font-family: 'Unbounded Variable', 'Space Grotesk Variable', system-ui, sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--auth-ink);
    margin: 0 0 12px;
}

.auth-dek {
    font-family: 'Space Grotesk Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--auth-ink-2);
    margin: 0 0 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 8px; }

.auth-label {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-ink-3);
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(245, 241, 230, 0.04);
    border: 1.5px solid var(--auth-border-2);
    border-radius: 6px;
    color: var(--auth-ink);
    font-family: 'Space Grotesk Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    transition: border-color 150ms ease, background 150ms ease;
    outline: none;
}
.auth-input::placeholder { color: var(--auth-ink-3); }
.auth-input:focus {
    border-color: var(--auth-accent);
    background: rgba(245, 241, 230, 0.06);
}
.auth-input:autofill {
    -webkit-text-fill-color: var(--auth-ink);
    box-shadow: 0 0 0 1000px rgba(245, 241, 230, 0.04) inset;
}

.auth-btn {
    width: 100%;
    padding: 14px 22px;
    background: var(--auth-accent);
    color: #141210;
    border: 0;
    border-radius: 6px;
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 150ms ease, transform 100ms ease, box-shadow 150ms ease;
    min-height: 48px;
    box-shadow: 0 6px 20px -4px rgba(224, 96, 96, 0.35);
}
.auth-btn:hover {
    background: var(--auth-accent-2);
    box-shadow: 0 10px 30px -6px rgba(224, 96, 96, 0.5);
}
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 3px;
}

.auth-error {
    padding: 12px 14px;
    background: rgba(224, 96, 96, 0.08);
    border: 1px solid rgba(224, 96, 96, 0.3);
    border-radius: 4px;
    color: var(--auth-accent);
    font-size: 14px;
    line-height: 1.5;
}

.auth-proof {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--auth-border-2);
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-ink-3);
    text-align: center;
}

/* "Check your inbox" success state */
.auth-success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    background: rgba(224, 96, 96, 0.12);
    border: 1px solid rgba(224, 96, 96, 0.3);
    border-radius: 50%;
    color: var(--auth-accent);
}

.auth-success-mail { font-weight: 600; color: var(--auth-ink); }

@media (max-width: 560px) {
    .auth-wordmark, .auth-back {
        top: 20px;
    }
    .auth-wordmark { left: 24px; font-size: 18px; }
    .auth-back { right: 24px; }
    .auth-card { padding: 28px 24px; }
    .auth-title { font-size: 24px; }
}
