/* =========================================
   ENHANCED AUTH PAGE (Login/Register)
   ========================================= */

/* Main Wrapper - Centered & Full Height */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f1e0 100%);
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Card Container */
.auth-card-premium {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    min-height: 600px;
    position: relative;
}

/* Left Side - Forms */
.auth-side-left {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

/* Right Side - Hero/Branding */
.auth-side-right {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%);
    /* Dark Theme */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Circles on Right Side */
.auth-side-right::before,
.auth-side-right::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.auth-side-right::before {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
}

.auth-side-right::after {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -30px;
}

.auth-welcome-content {
    position: relative;
    z-index: 10;
    animation: fadeInRight 0.8s ease-out;
}

.auth-welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.auth-welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item i {
    font-size: 1.2rem;
    color: #f59e0b;
    /* Yellow/Orange */
}

/* Tabs */
.auth-tabs-premium {
    display: flex;
    margin-bottom: 35px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.auth-tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tab-btn.active {
    color: var(--primary-color);
}

/* Animated Tab Glider */
.tab-glider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Forms */
.auth-form-container {
    position: relative;
    min-height: 580px;
    /* Increased height to preventing button cutoff */
    padding-bottom: 20px;
}

.premium-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    pointer-events: none;
    visibility: hidden;
}

.premium-form.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    visibility: visible;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-group-premium {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    /* Exaclty 15px from left */
    top: 17px;
    /* Fixed centering for 50px height (25px - 8px) */
    transform: none;
    /* Remove dynamic transform to rely on fixed pixel */
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    pointer-events: none;
    z-index: 5;
}

/* Increased specificity to override global style.css */
input.input-field-premium {
    width: 100%;
    padding: 14px 45px !important;
    /* Force padding to prevent text overlap */
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.3s ease;
    background: #fff;
    height: 50px;
    line-height: normal;
    /* Reset line height */
}

input.input-field-premium:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    /* Subtle Gold Shadow */
    outline: none;
}

/* Hide native password toggles (Edge/IE) */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* Hide native password toggles (Chrome/Safari - rarely an issue but good to have) */
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.input-field-premium:focus+.input-icon {
    color: var(--accent-color);
}

/* Floating Label Animation setup (optional, using placeholder for cleaner look currently requested) */

/* Validation Styles */
.input-field-premium.error {
    border-color: #ff4444;
    background: #fff8f8;
}

.input-field-premium.success {
    border-color: #00c851;
}

.feedback-msg {
    position: absolute;
    bottom: -20px;
    left: 5px;
    font-size: 0.75rem;
    color: #ff4444;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s;
}

.input-field-premium.error~.feedback-msg {
    opacity: 1;
    transform: translateY(0);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
    width: 0;
    /* Default width 0 */
}

#strength-text {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    text-align: right;
    /* Right align as requested */
    font-weight: 500;
    transition: color 0.3s;
}

/* Toggle Password - FIXED VERSION */
.toggle-pass {
    position: absolute;
    /* Essential for placement */
    right: 15px;
    /* Essential for placement */
    top: 17px;
    /* Fixed vertical centering */
    display: flex;
    /* For internal icon centering */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 20px;
    height: auto;
    transition: color 0.3s;
    z-index: 10;
}

.toggle-pass:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-auth-primary {
    width: 100%;
    background: var(--primary-color);
    /* Theme Black */
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(107, 78, 61, 0.2);
    margin-top: 10px;
}

.btn-auth-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(107, 78, 61, 0.3);
}

.btn-auth-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Login */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
    margin: 20px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.social-divider span {
    padding: 0 10px;
}

.social-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #d1d1d1;
    transform: translateY(-2px);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-page-wrapper {
        padding: 15px;
        background: #f5f7fa;
        /* Simpler background for mobile */
    }

    .auth-card-premium {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .auth-side-left {
        order: 2;
        padding: 40px 25px;
    }

    .auth-side-right {
        order: 1;
        padding: 50px 25px;
        min-height: 300px;
    }



    .auth-welcome-content h2 {
        font-size: 2rem;
    }

    .auth-welcome-content p {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .benefits-list {
        display: block;
        /* Show them but simplified */
        margin-top: 30px !important;
    }

    .benefit-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .auth-form-container {
        min-height: auto;
    }

    .premium-form {
        position: relative;
        opacity: 1;
        transform: none;
        visibility: visible;
        display: none;
    }

    .premium-form.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 0;
        align-items: flex-start;
    }

    .auth-card-premium {
        border-radius: 0;
        box-shadow: none;
    }

    .auth-side-left {
        padding: 30px 20px;
    }

    .auth-side-right {
        padding: 40px 20px;
    }

    .auth-tabs-premium {
        margin-bottom: 25px;
    }

    .auth-tab-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .input-wrapper {
        margin-bottom: 20px;
    }

    .btn-auth-primary {
        padding: 15px;
        font-size: 16px;
    }

    .social-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn-social {
        width: 100%;
    }
}