/* Shared styles for standalone auth pages (waitlist, login).
   These templates intentionally do NOT extend spite_base.html, so
   this stylesheet carries everything they need. */

html, body {
    margin: 0;
    padding: 0;
    background: #faebd7;
    color: #000;
    font-family: 'Crimson Text', serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Scale/spacing overrides for the shared .sidebar-wordmark on auth pages */
.auth-wordmark {
    margin: 0 auto 28px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #f5e6d3;
    border: 1px solid #d4c4a8;
    border-radius: 6px;
    padding: 36px 28px;
    box-sizing: border-box;
}

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

.auth-header {
    font-family: 'Prata', serif;
    font-size: 1.4em;
    color: #000;
    text-align: center;
    margin: 0 0 4px;
}

.auth-subtitle {
    font-family: 'Crimson Text', serif;
    color: #888;
    margin: 0 0 24px;
    font-size: 0.95em;
    text-align: center;
}

.auth-message {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.9em;
    font-family: 'Crimson Text', serif;
}

.auth-message.success {
    background: #e8f5e8;
    color: #2a5a2a;
    border: 1px solid #b5d8b5;
}

.auth-message.error {
    background: #fbe8e8;
    color: #8a2a2a;
    border: 1px solid #d8b5b5;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 0.9em;
    color: #555;
    font-weight: 600;
}

.auth-form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c4b498;
    border-radius: 4px;
    background: #faebd7;
    color: #333;
    font-family: 'Crimson Text', serif;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: #000;
    outline: none;
}

.auth-form-group input::placeholder {
    color: #b8a890;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #faebd7;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'Prata', serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-btn:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

.auth-btn:disabled {
    background: #c4b498;
    border-color: #c4b498;
    color: #f5e6d3;
    cursor: not-allowed;
}

.auth-note {
    margin: 14px 0 0;
    color: #888;
    font-size: 0.85em;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

.auth-state {
    text-align: center;
}

.auth-state p {
    font-family: 'Crimson Text', serif;
    color: #444;
    margin: 0 0 12px;
    line-height: 1.5;
}

.auth-state .auth-state-email {
    font-weight: 600;
    color: #000;
}
