/* Container: Full Screen Split */
.o_login_main_wrapper {
    display: flex !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/dine360_theme_chennora/static/src/img/chen-banner-2.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

/* Left Side: Background Image and Branding */
.o_login_left_side {
    flex: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px !important;
    position: relative;
    /* Dark overlay on image for text readability */
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/dine360_dashboard/static/src/img/login_bg.png') no-repeat center center !important;
    background-size: cover !important; */
    color: white !important;
}

.o_login_content {
    text-align: center;
    max-width: 80%;
}

.o_login_content h1 {
    font-size: 3.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.6) !important;
}

.o_login_content p {
    font-size: 1.4rem !important;
    opacity: 0.9;
}

/* Right Side: Form Section */
.o_login_right_side {
    flex: 1 !important;
    /* background: #ffffff !important; */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px !important;
    position: relative;
}

.o_login_card_wrapper {
    width: 60%
}

/* Glassmorphism Card UI */
.o_login_card {
    width: 100% !important;
    max-width: 450px !important;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 2;
}

/* Header Text Gradient */
.o_login_header_text h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px;
    color: #d6111e !important;
}

/* Logo */
.o_login_logo_container {
    text-align: center;
    margin-bottom: 30px;
}

.o_login_logo_container img {
    max-height: 120px;
    /* Larger logo */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Form Inputs */
.form-control:focus {
    border-color: #FECD4F !important;
    box-shadow: 0 0 0 3px rgba(254, 205, 79, 0.2) !important;
    background: #ffffff !important;
}

.o_login_form_container label {
    color: #ffffff !important;
    margin-bottom: 8px;
    font-weight: 500;
}

.o_login_form_container a,
.o_login_form_container .btn-link {
    color: #ffffff !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    height: auto !important;
    color: white !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Accessibility contrast for error messages */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.9) !important;
    color: white !important;
    border: none !important;
}

/* Login Button with Gradient */
.oe_login_buttons .btn-primary {
    background: #FECD4F !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #04121D !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(254, 205, 79, 0.3) !important;
}

.oe_login_buttons .btn-primary:hover {
    background: #04121D !important;
    color: #FECD4F !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 205, 79, 0.4) !important;
}


/* Responsive Handling */
@media (max-width: 992px) {
    .o_login_main_wrapper {
        flex-direction: column;
    }

    .o_login_left_side {
        display: none !important;
    }

    .o_login_right_side {
        background: #0f172a !important;
    }

    .o_login_card_wrapper {
        width: 90% !important;
    }
    
    .oe_website_login_container .oe_login_form,
    .oe_website_login_container .oe_signup_form,
    .oe_website_login_container .oe_reset_password_form {
        width: 90% !important;
    }
}

/* Hide Website Header/Footer ONLY on Login, Signup, Reset Password */
body.o_custom_login_body header,
body.o_custom_login_body footer,
body.o_custom_login_body .o_footer_copyright,
body.o_custom_login_body #o_main_nav,
body.o_custom_login_body .o_header_standard,
body.o_custom_login_body #wrapwrap>header,
body.o_custom_login_body #wrapwrap>footer {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Ensure wrapwrap doesn't have padding/margin from header on these pages */
body.o_custom_login_body #wrapwrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure the wrapper covers the entire screen, ignoring website container constraints */
body.o_custom_login_body .o_login_main_wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    /* Ensure it stays on top */
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom Footer */
.o_login_footer_custom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    /* Only on the right side which is 50% usually, or just right side */
    text-align: center;
    padding: 15px;
    background: transparent;
    color: #6c757d;
    z-index: 10;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .o_login_footer_custom {
        width: 100%;
        color: white;
        /* Visible on gradient background */
    }
}

.o_login_footer_custom a {
    color: #d6111e;
    text-decoration: none;
    font-weight: 600;
}

.o_login_footer_custom a:hover {
    color: #171422;
}


/* website login screen */
.oe_website_login_container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    /* width: 100vw !important; */
    overflow: hidden !important;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/dine360_theme_chennora/static/src/img/chen-banner-2.webp') no-repeat center center !important;
    background-size: cover !important;
}

.oe_website_login_container .oe_login_form,
.oe_website_login_container .oe_signup_form,
.oe_website_login_container .oe_reset_password_form {
    width: 60% !important;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 2;
    max-width: 400px;
}
.oe_website_login_container label,
.oe_website_login_container a {
    color: #ffffff !important;
}
