/* Shared dark-neon styling for all auth pages — matches todomode.com landing */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2e;
    --bg-tertiary: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #7dd3fc;
    --accent-btn: #22d3ee;
    --accent-green: #4ade80;
    --border: rgba(125, 211, 252, 0.2);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
body::after {
    content: '';
    position: fixed; top: -18%; left: 50%; transform: translateX(-50%);
    width: 720px; height: 520px; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(125, 211, 252, 0.10), transparent 70%);
}

.auth-container {
    position: relative; z-index: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    padding: 2.75rem 2.25rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-logo {
    display: inline-flex; align-items: center;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--accent-cyan); text-decoration: none;
    margin-bottom: 1.5rem;
}
.auth-logo::before { content: '›'; color: var(--accent-green); margin-right: 0.25rem; }

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-subtitle { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
    color: var(--text-secondary);
}
.form-input {
    padding: 0.85rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem; color: var(--text-primary);
    outline: none; transition: all 0.2s ease; font-family: inherit;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}

input[type="checkbox"] { accent-color: var(--accent-btn); width: 1rem; height: 1rem; }

.auth-button {
    background: var(--accent-btn);
    color: var(--bg-primary);
    border: none; padding: 0.9rem; border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em;
    cursor: pointer; margin-top: 0.4rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}
.auth-button:hover { transform: translateY(-2px); background: #3fddf0; box-shadow: 0 8px 30px rgba(34, 211, 238, 0.45); }
.auth-button:active { transform: translateY(0); }

.error-message {
    color: #fca5a5; font-size: 0.85rem; margin-top: 0.5rem; padding: 0.75rem;
    background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.3); border-radius: 8px;
}
.success-message {
    color: #86efac; font-size: 0.85rem; margin-top: 0.5rem; padding: 0.75rem;
    background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 8px;
}
.info-message {
    font-size: 0.85rem; padding: 0.75rem; border-radius: 8px;
    background: rgba(167, 139, 250, 0.12); border: 1px solid rgba(167, 139, 250, 0.3); color: #c4b5fd;
}

.trial-notice, .security-notice {
    color: var(--accent-cyan); font-family: 'Fira Code', monospace;
    font-size: 0.78rem; margin-top: 1.25rem; padding: 0.75rem;
    background: rgba(125, 211, 252, 0.07); border: 1px solid var(--border); border-radius: 8px;
}

.help-text { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.backup-code-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.75rem; }
.help-text a, .backup-code-hint a { color: var(--accent-cyan); text-decoration: none; }
.help-text a:hover, .backup-code-hint a:hover { text-decoration: underline; }

.auth-links { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(125, 211, 252, 0.12); }
.auth-links p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-link { color: var(--accent-cyan); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.password-requirements { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; line-height: 1.4; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
