/* auth-premium.css - Premium Auth Styles (BS5) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --theme-purple: #667eea;
    --theme-purple-dark: #764ba2;
    --theme-green: #1cc88a;
    --theme-green-dark: #13855c;
    --theme-blue: #4e73df;
    --theme-blue-dark: #224abe;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #5a5c69;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
}

/* Theme Backgrounds for Body (Mobile/Full) */
body.theme-purple { background: linear-gradient(135deg, var(--theme-purple) 0%, var(--theme-purple-dark) 100%); }
body.theme-green { background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-dark) 100%); }
body.theme-blue { background: linear-gradient(135deg, var(--theme-blue) 0%, var(--theme-blue-dark) 100%); }

/* Full Centered Layout (For Password Change, etc) */
.auth-centered-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
}

/* Split Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    width: 100%;
    /* On mobile, wrapper centers the content on the body bg */
    justify-content: center;
    align-items: center;
}

.auth-sidebar {
    display: none; /* Hidden on mobile */
    width: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    /* Sidebar overrides body bg when visible */
    z-index: 10;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.85;
    z-index: 1;
}

/* Theme Variants for Sidebar Overlay */
.theme-purple .auth-sidebar::before { background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%); }
.theme-green .auth-sidebar::before { background: linear-gradient(135deg, rgba(28, 200, 138, 0.95) 0%, rgba(19, 133, 92, 0.95) 100%); }
.theme-blue .auth-sidebar::before { background: linear-gradient(135deg, rgba(78, 115, 223, 0.95) 0%, rgba(34, 74, 190, 0.95) 100%); }

.auth-sidebar-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-sidebar-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.auth-sidebar-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.auth-sidebar-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

.auth-sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* Main Content Area */
.auth-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    /* Transparent on mobile to show body gradient */
    background: transparent;
    min-height: 100vh;
}

.auth-form-card {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.6s ease-out;
    /* Card style for mobile popping */
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15);
}

/* Register Pages need wider form */
.auth-main.wide-form .auth-form-card {
    max-width: 700px;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .auth-wrapper {
        min-height: 100vh;
        align-items: stretch;
        justify-content: flex-start;
    }

    .auth-sidebar {
        display: flex;
        width: 45%;
    }

    .auth-main {
        width: 55%;
        background: white; /* White bg on desktop right side */
        min-height: auto;
    }

    .auth-form-card {
        box-shadow: none; /* Cleaner look on desktop split */
        padding: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 0.75rem;
    border: 1px solid #e3e6f0;
    background-color: #f8f9fc;
    height: 3.8rem;
    line-height: 1.25;
}

.form-floating > label {
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.15);
    background-color: #fff;
}

.btn-primary-premium, .btn-success-premium, .btn-info-premium {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary-premium, .btn-success-premium, .btn-info-premium {
    /* Unify buttons to green if requested consistency, but mapped to classes for now */
    color: white;
}

.theme-purple .btn-primary-premium { background: linear-gradient(135deg, var(--theme-purple) 0%, var(--theme-purple-dark) 100%); }
.theme-green .btn-primary-premium,
.theme-green .btn-success-premium { background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-dark) 100%); }
.theme-blue .btn-primary-premium,
.theme-blue .btn-info-premium { background: linear-gradient(135deg, var(--theme-blue) 0%, var(--theme-blue-dark) 100%); }

.btn-primary-premium:hover, .btn-success-premium:hover, .btn-info-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    color: white;
}

/* Theme Focus Colors */
.theme-purple .form-control:focus { border-color: var(--theme-purple); box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15); }
.theme-green .form-control:focus { border-color: var(--theme-green); box-shadow: 0 0 0 0.25rem rgba(28, 200, 138, 0.15); }
.theme-blue .form-control:focus { border-color: var(--theme-blue); box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.15); }

.theme-purple a { color: var(--theme-purple); }
.theme-green a { color: var(--theme-green); }
.theme-blue a { color: var(--theme-blue); }

/* Utilities */
.auth-header {
    margin-bottom: 2rem;
    text-align: left;
}
.auth-header h3 {
    font-weight: 700;
    color: #2d3748;
}
.auth-header p {
    color: #718096;
}

.social-auth-links { margin: 1.5rem 0; }
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #a0aec0;
}
.auth-separator::before, .auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.auth-separator span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}
.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Password Toggle */
.password-toggle-absolute {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    z-index: 5;
    background: transparent;
    border: none;
    padding: 0.5rem;
}
.password-toggle-absolute:hover { color: #4a5568; }

/* Responsive Mobile Improvements */
@media (max-width: 576px) {
    .auth-main { padding: 1.5rem; }
    .auth-header h3 { font-size: 1.5rem; }
}
