/* ============================================
   KJV Bible Reader - Auth Pages (login + register)
   ============================================ */

:root {
    --font-primary: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --color-bg: #fdfcf8;
    --color-text: #2c2416;
    --color-text-muted: #6b5c4a;
    --color-header-bg: #f5f3ee;
    --color-border: #e0dcd3;
    --color-link: #7b5e3a;
    --color-error: #b94a3a;
    --color-success: #3a7a4a;
}

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

html {
    font-size: 18px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.auth-brand a:hover {
    color: var(--color-link);
}

.auth-card {
    background: var(--color-header-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
}

.auth-card h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-text);
}

.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.auth-form input {
    width: 100%;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: white;
    color: var(--color-text);
    outline: none;
    transition: border-color 150ms ease;
}

.auth-form input:focus {
    border-color: var(--color-link);
}

.auth-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.65rem 1rem;
    background: var(--color-link);
    color: #fdfcf8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 150ms ease;
}

.auth-submit-btn:hover {
    background: #6b4f30;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    display: none;
    margin-top: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    background: #fdf0ee;
    border: 1px solid #e8c8c3;
    color: var(--color-error);
    text-align: center;
}

.auth-error.visible {
    display: block;
}

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

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Google OAuth button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1.25rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #3c4043;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
    margin-bottom: 0.25rem;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
}

.google-btn img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* "or" divider between Google and email form */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
