﻿:root {
    --primary-color: #ff740b;
    --primary-dark: #3a56d4;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --bg-light: #edf2f4;
    --white: #ffffff;
    --form-bg: rgba(255, 255, 255, 0.95); /* More opaque background */
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1484&q=80') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--form-bg); /* Using the more opaque background */
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    overflow: hidden;
    display: flex;
    min-height: 500px;
    backdrop-filter: blur(5px); /* Subtle blur for depth */
    width: 50%;
}

.login-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-height: 500px;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .login-content::-webkit-scrollbar {
        display: none;
    }


/* Improved input group with perfect toggle alignment */
.input-group {
    display: flex;
    align-items: stretch; /* Ensures equal height */
}

.form-control {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 3px !important; /* Important to override Bootstrap */
    padding: 0.75rem 1.25rem;
    height: auto; /* Let it size naturally */
    margin-bottom: 1.5rem;
}

#password {
    margin: 0;
    border-radius: 10px 0 0 10px !important;
}


.password-toggle {
    background: var(--white);
    border: 1px solid #e0e0e0 !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .password-toggle:hover {
        background-color: #f5f5f5;
    }

    .password-toggle i {
        font-size: 1.2rem;
        color: var(--text-light);
    }

/* Rest of your existing styles... */
.login-hero {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80') no-repeat center center;
    background-size: cover;
    border-radius: 0 20px 20px 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: var(--text-light);
}

    .login-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, var(--primary-color), transparent);
        opacity: 0.8;
        border-radius: 0 20px 20px 0;
    }

.logo {
    width: 70%;
}

#countryCode {
    border-radius: 10px 0 0 10px !important;
}

#telephone {
    border-radius: 0 10px 10px 0 !important;
    margin-bottom: 0;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
    }

    .login-hero {
        border-radius: 0 0 20px 20px;
        min-height: 200px;
    }

        .login-hero::before {
            border-radius: 0 0 20px 20px;
        }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-content {
        padding: 2rem 1.5rem;
    }
    .login-card {
        width: 95%;
    }
}
