:root {
    --bg: #0f1115;
    --panel: #181b22;
    --text: #e8eaed;
    --muted: #8b8f98;
    --accent: #7aa2f7;
    --error: #f7768e;
    --ok: #9ece6a;
    --border: #2a2e36;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

p.subtitle {
    margin: 0 0 1.5rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

label {
    display: block;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.85rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

button:hover:not(:disabled) {
    filter: brightness(1.1);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    min-height: 1em;
}

.message.error {
    background: rgba(247, 118, 142, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.message.ok {
    background: rgba(158, 206, 106, 0.1);
    color: var(--ok);
    border: 1px solid var(--ok);
}

.email-display {
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent);
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    word-break: break-all;
}

.footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}
