/* ============================================
   Auth Pages - Shared Styles
   Used by: login, register, forgot-password, reset-password
   ============================================ */

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(192,57,43,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Auth container - default margin */
.auth-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-card p.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    border-color: var(--primary);
}

.auth-field .field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

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

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary-light);
    text-decoration: none;
}

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

.auth-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Password requirements checklist */
.password-requirements {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-requirements .req {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.password-requirements .req.met {
    color: #4ade80;
}

.password-requirements .req-icon {
    font-size: 11px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Newsletter opt-in (register page) */
.newsletter-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.newsletter-opt input {
    accent-color: var(--primary);
}
