/* Auth Page Specific Styles 
 * Luxury Modern Midnight Refactor
 */

/* Redesign specific styles */
.auth-page-redesign {
    background-color: var(--dark-bg);
    min-height: 100vh;
    position: relative;
}

.auth-page-redesign::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1c 0%, #000 100%);
    z-index: -1;
}

.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-split {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Hide brand side for centered layout */
.auth-brand-side {
    display: none !important;
}

.auth-form-side {
    width: 100%;
    padding: 0;
    background: transparent;
}

.auth-form-wrapper {
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Add a subtle glow effect */
.auth-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 112, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-form-wrapper>* {
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #FF7000 0%, #ff5a60 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Controls */
.auth-page-redesign .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

.auth-page-redesign .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 112, 0, 0.1);
    color: #fff;
}

/* Tabs */
.auth-page-redesign .nav-tabs {
    border: none;
    gap: 2rem;
}

.auth-page-redesign .nav-tabs .nav-link {
    border: none;
    padding: 0;
    opacity: 0.5;
    font-size: 1.1rem;
    position: relative;
    color: #fff !important;
}

.auth-page-redesign .nav-tabs .nav-link.active {
    background: none !important;
    opacity: 1;
    color: #fff !important;
}

.auth-page-redesign .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
}

/* Strength Meter */
.password-strength-meter {
    margin-top: 12px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Divider */
.auth-page-redesign .divider-text {
    position: relative;
    display: block;
    text-align: center;
    margin: 2rem 0;
}

.auth-page-redesign .divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-page-redesign .divider-text span {
    position: relative;
    background: #0a0a0b;
    padding: 0 1rem;
    color: #a1a1aa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Social Buttons */
.auth-page-redesign .social-login .btn {
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    transition: var(--transition-premium);
}

.auth-page-redesign .social-login .btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

@media (max-width: 992px) {
    .auth-brand-side {
        display: none;
    }

    .auth-form-side {
        flex: 1;
        padding: 1rem 1rem;
    }

    .auth-form-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .auth-header p {
        font-size: 0.85rem;
        margin-bottom: 0 !important;
    }

    .auth-page-redesign .nav-tabs {
        gap: 1.25rem;
        margin-bottom: 1.25rem !important;
    }

    .auth-page-redesign .nav-tabs .nav-link {
        font-size: 0.95rem;
    }

    .auth-container {
        padding: 0.5rem 0.5rem;
        min-height: auto;
    }

    .auth-page-redesign .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .auth-page-redesign .mb-4 {
        margin-bottom: 1rem !important;
    }

    .auth-page-redesign .mb-5 {
        margin-bottom: 1.25rem !important;
    }

    .auth-page-redesign .divider-text {
        margin: 1rem 0;
    }

    .auth-page-redesign .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }

    .password-strength-meter {
        margin-top: 8px;
    }
}
@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 1.2rem;
    }

    .auth-page-redesign .nav-tabs {
        gap: 1rem;
    }

    .auth-header {
        margin-bottom: 1rem !important;
    }
}

/* Light Theme Auth Form Overrides */
.light-theme .auth-form-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.light-theme .auth-header h1,
.light-theme .auth-header p,
.light-theme .auth-page-redesign .nav-tabs .nav-link,
.light-theme .auth-page-redesign label,
.light-theme .auth-page-redesign .form-check-label,
.light-theme .auth-page-redesign .divider-text {
    color: #1a1a1b !important;
}

.light-theme .auth-page-redesign .nav-tabs .nav-link {
    opacity: 0.6;
}

.light-theme .auth-page-redesign .nav-tabs .nav-link.active {
    opacity: 1;
    color: #ffd100 !important; /* Gold underline or text */
}

.light-theme .auth-page-redesign .form-control {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #1a1a1b !important;
}

.light-theme .auth-page-redesign .form-control:focus {
    border-color: #ffd100 !important;
    box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.1) !important;
}

.light-theme .auth-page-redesign .divider-text span {
    background: #ffffff !important;
    color: #6b7280 !important;
}

.light-theme .auth-page-redesign .social-login .btn {
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #1a1a1b !important;
}

.light-theme .auth-page-redesign .social-login .btn:hover {
    background: #f9fafb !important;
}

.light-theme .auth-page-redesign .text-white {
    color: #1a1a1b !important;
}
