@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --- 1. GLOBAL DEFAULTS --- */

:root {
    --primary-orange: #F37135;
    --primary-soft-orange: #FEEBDD;
    --primary-light-orange: rgba(243, 113, 53, 0.1);
    --branding-black: #000000;
    --theme-peach: #FFF5F1;
    --bg-cream: #FFF5F1;
    --sidebar-black: #000000;
    --accent-red: #D32F2F;
    --accent-soft-red: #FFE9E7;
    --text-gray: #6F6F6F;
    --text-light-gray: #F2F1F0;
    --text-white: #ffffff;
    --border-color: #E6D5C5;
    --bg-green: #319F43;
    --bg-soft-green: #F0FFF2;
    --bg-white: #ffffff;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    overflow: hidden;
    /* Screen se bahar scroll nahi hoga */
    background-color: #FFF5F1;
}

a {
    /* color: var(--primary-orange) !important; */
    text-decoration: none !important;
}

/* --- 2. LAYOUT WRAPPERS --- */
.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* --- 3. LEFT BRANDING SECTION (PREMIUM DARK) --- */
.black-section {
    position: relative;
    flex: 0 0 55%;
    background: linear-gradient(to bottom, #000000 0%, #120906 38%, #2A160E 100%);
    /* background: radial-gradient(to bottom at 20% 30%, #2A160E 0%, #120906 100%); */
    color: white;
    display: flex;
    flex-direction: column;
    padding: 60px 100px;
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    overflow: hidden;
}

/* Background Decorative Lines */
.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.bg-lines .line-1,
.line-2,
.line-3,
.line-4 {
    position: absolute;
    background: #292929;
    height: 1px;

    transform-origin: left center;
}

.bg-lines .line-1 {
    transform: rotate(45deg);
    width: 150%;
    top: 20%;
    left: -10%;
}

.bg-lines .line-2 {
    transform: rotate(45deg);
    width: 150%;
    top: -26%;
    left: -20%;
}

.bg-lines .line-3 {
    transform: rotate(66deg);
    width: 150%;
    top: -8%;
    left: 36%;
}

.bg-lines .line-4 {
    transform: rotate(52deg);
    width: 130%;
    top: -95%;
    left: -3%;
}


/* Subtle pattern overlay */
.black-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.branding-top {
    position: relative;
    margin-bottom: 40px;
    z-index: 10;
}

.brand-logo {
    width: 160px;
    height: auto;
}

.text-orange {
    color: var(--primary-orange) !important;
}

/* Slider Content */
.slider-container {
    position: relative;
    flex-grow: 1;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.header-slider-wrapper {
    position: relative;
    min-height: 220px;
    /* Adjust based on largest header height */
    /* margin-bottom: 20px; */
}

.welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(20px);
}

.welcome-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.static-welcome-content {
    position: relative;
    z-index: 5;
}

.welcome-badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(243, 113, 53, 0.4);
    border-radius: 50px;
    color: var(--primary-orange);
    font-size: 8px;
    font-weight: 500;
    margin-bottom: 10px;
}

.welcome-heading {
    font-size: clamp(3rem, 6vh, 3.8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.sub-tagline {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.sub-tagline .dash {
    width: 20px;
    height: 4px;
    background-color: var(--primary-orange);
    margin-right: 4px;
    border-radius: 2px;
}

.welcome-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 450px;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-orange);
}

.feature-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.feature-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Pagination Dots */
.pagination-dots {
    position: relative;
    display: flex;
    gap: 8px;
    margin-top: 40px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 8px;
    border-radius: 40%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-orange);
    width: 30px;
    border-radius: 10px;
}

/* --- 4. FORM SECTION (100vh FIXED) --- */
.white-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #FFF5F1;
    height: 100vh;
    overflow-y: auto;
    /* Agar screen boht choti ho to sirf form scroll ho */
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

.form-title {
    font-size: clamp(1.5rem, 4vh, 1.8rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.form-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: clamp(10px, 2.5vh, 25px);
}

/* Fix: Form fields ko compact kiya gaya taake 100vh mein fit aayein */
.form-group {
    margin-bottom: clamp(8px, 1.6vh, 14px) !important;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.form-control-custom {
    height: clamp(38px, 5.5vh, 48px);
    border-radius: 4px;
    border: 1px solid #D1D1D1;
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: #FFF5F1;
    transition: 0.3s;
}

.form-control-custom:focus {
    border-color: var(--primary-orange);
    box-shadow: none;
}

/* Validation States */
.form-control-custom.is-invalid {
    border-color: #D32F2F !important;
    background-color: #FFF2F2 !important;
    color: #D32F2F !important;
}

/* --- 5. INTERACTIVE ELEMENTS --- */
.password-field-group {
    position: relative;
}

.password-field-group .toggle-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #CCCCCC;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
}

.btn-sign-in {
    background-color: var(--primary-orange);
    color: white;
    height: clamp(42px, 6vh, 50px);
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: 0.3s;
    width: 100%;
    margin-top: 5px;
}

.btn-sign-in:hover {
    background-color: #e26224;
    box-shadow: 0 5px 15px rgba(243, 115, 53, 0.3);
}

.signup-text {
    font-size: 16px;
    font-weight: 500 !important;
    margin-top: clamp(10px, 2vh, 20px);
}

/* --- 6. RESPONSIVE MEDIA QUERIES --- */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .form-container {
        max-width: 440px;
    }
}

/* Tablets & Small Desktops */
@media (max-width: 1199px) {
    .black-section {
        flex: 0 0 55%;
    }
}

@media (max-width: 991px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .black-section {
        display: none !important;
    }

    .white-section {
        flex: 1;
        width: 100%;
        height: 100vh;
        padding: 40px 20px;
        background-color: #FFF5F1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }

    .mobile-logo {
        display: block !important;
    }

    .form-container {
        margin: 0 auto;
        padding: 0;
    }

    body,
    html {
        overflow-y: auto;
        height: 100vh;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    .white-section {
        padding: 30px 15px;
    }

    .form-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .form-subtitle {
        text-align: center;
    }

    .mobile-logo img {
        width: 120px !important;
    }
}

/* Browser specific fixes */
.form-control-custom::placeholder {
    font-size: 0.85rem;
    opacity: 0.6;
}

.form-control-custom.is-invalid::placeholder {
    color: #D32F2F !important;
}