/**
 * Authentication Pages - Theme-Aware Professional Styling
 * Login, Signup, and Password Reset pages
 * Uses CSS variables from design-system.css for theme support
 */

/* ============================================
   AUTH LAYOUT - Theme-Aware Background
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    position: relative;
}

/* Subtle gradient overlay - theme aware */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(114, 9, 183, 0.08) 0%, transparent 50%);
    z-index: 0;
}

/* ============================================
   AUTH CARD - Theme-Aware Card
   ============================================ */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.auth-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-1);
}

.auth-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-6);
}

/* ============================================
   FORM STYLING - Theme-Aware Inputs
   ============================================ */
.auth-form .form-group {
    margin-bottom: var(--space-4);
}

.auth-form .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Checkbox styling */
.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.auth-form .form-check-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-form .form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    background: var(--bg-secondary);
    cursor: pointer;
}

.auth-form .form-check-input:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ============================================
   BUTTONS - Theme-Aware Primary Button
   ============================================ */
.auth-btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-inverse);
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.auth-btn-primary:hover {
    background: var(--accent-primary-hover);
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* ============================================
   LINKS & FOOTER
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: var(--font-medium);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   ALERTS & ERRORS
   ============================================ */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.auth-alert-error {
    background: var(--error-soft);
    border: 1px solid var(--error);
    color: var(--error);
}

.auth-alert-success {
    background: var(--success-soft);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ============================================
   DOT PATTERN (Optional subtle effect)
   ============================================ */
.auth-page .dot-pattern {
    display: none;
    /* Hidden for cleaner look */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-6);
        margin: var(--space-2);
        border-radius: var(--radius-lg);
    }
}