﻿/* ==========================================================================
   AUTH PAGES (Login, Register, Forgot Password)
   Consistent styling matching TownVue design system
   ========================================================================== */

.auth-container {
    display: flex;
    gap: 0;
    min-height: 60vh;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-1, 0 3px 24px rgba(0, 0, 0, 0.15));
    background: var(--color-surface, #fff);
}

/* Brand Panel (Left Side) */
.auth-brand-panel {
    background: var(--color-text, #212529);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    flex: 0 0 45%;
    display: flex;
}

    .auth-brand-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 280px;
}

.auth-brand-logo {
    color: var(--color-brand-primary, #f0c14b);
}

    .auth-brand-logo h1 {
        color: #fff;
        font-weight: 700;
    }

.auth-brand-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    text-align: center;
}

.auth-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: background-color 150ms ease;
}

    .auth-feature i {
        font-size: 1.25rem;
        color: var(--color-brand-primary, #f0c14b);
    }

    .auth-feature span {
        font-size: 0.8rem;
        opacity: 0.9;
    }

/* Form Container (Right Side) */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, #fff);
    padding: 2.5rem 2rem;
}

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

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text, #212529);
}

.auth-form-subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Styling */
.auth-form .form-label {
    font-weight: 500;
    color: var(--color-text, #212529);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

    .auth-form .form-label .text-danger {
        flex-shrink: 0;
    }

    .auth-form .form-label i {
        color: #6c757d;
    }

.auth-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    background: var(--color-surface, #fff);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

    .auth-form .form-control.form-control-lg {
        padding: 0.75rem 1rem;
    }

    .auth-form .form-control:focus {
        border-color: var(--color-brand-primary, #0d6efd);
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
        background: var(--color-surface, #fff);
    }

    .auth-form .form-control::placeholder {
        color: #adb5bd;
    }

.auth-form .form-check-input:checked {
    background-color: var(--color-text, #212529);
    border-color: var(--color-text, #212529);
}

/* Primary Button */
.auth-form .btn-primary {
    background: var(--color-text, #212529);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #fff !important;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

    .auth-form .btn-primary:hover,
    .auth-form .btn-primary:focus {
        background: #000;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.15));
    }

    .auth-form .btn-primary:active {
        transform: translateY(0);
        color: #fff !important;
    }

    .auth-form .btn-primary i {
        color: #fff !important;
    }

/* Links */
.auth-link {
    color: var(--color-brand-primary, #0d6efd);
    text-decoration: none;
    transition: color 150ms ease;
}

    .auth-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Alert Styling */
.auth-form .alert {
    border-radius: 8px;
    border: none;
}

.auth-form .alert-danger {
    background-color: #fce8e8;
    color: #c53030;
}

    .auth-form .alert-danger:empty {
        display: none;
    }

/* Validation */
.auth-form .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive */
@media (max-width: 767.98px) {
    .auth-container {
        flex-direction: column;
        margin: 1rem auto;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .auth-brand-panel {
        display: none !important;
    }

    .auth-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .auth-form-title,
    .auth-form-subtitle {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-container {
        max-width: 700px;
    }

    .auth-brand-panel {
        flex: 0 0 40%;
        padding: 2rem 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .auth-form .btn-primary,
    .auth-form .form-control,
    .auth-feature {
        transition: none;
    }

        .auth-form .btn-primary:hover {
            transform: none;
        }
}

/* Promo box styling */
.auth-promo {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .auth-promo h6 {
        color: var(--color-text, #212529);
        font-weight: 600;
    }
