/* Login Page Custom Styles */

.overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgb(0, 0, 0);
    z-index: 999;
    border-radius: 24px;
}

.overlay {
    display: block;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.82)), url('/assets/images/backgrounds/img.jpg') no-repeat center;
    background-size: cover;
}

/* Loading screen styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide content initially */
.login-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.login-content.show {
    opacity: 1;
}

body {
    background-color: #ffffff !important;
}

/* White card background */
.authentication .card.custom-card {
    background-color: #ffffff !important;
    border-color: #e9ecef !important;
}

/* White background for authentication cover */
.authentication-cover {
    box-shadow: 3px 0px 5px #343434a8 !important;
    border-top-right-radius: 8px !important;
}

html[data-theme-mode="dark"] .authentication .card.custom-card {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html[data-theme-mode="dark"] .authentication .card.custom-card .form-control {
    background-color: #ffffff !important;
    border-color: #dfdfdf !important;
    color: #000000 !important;
    padding: 13px !important;
    padding-left: 15px !important;
}

.authentication .form-control:focus {
    border-color: #000000 !important;
    box-shadow: none !important;
}

html[data-theme-mode="dark"] .authentication .card.custom-card .text-muted {
    color: #6c757d !important;
}

html[data-theme-mode="dark"] .authentication .card.custom-card .form-label {
    color: #000000 !important;
}


/* Login button styling */
.authentication .btn-white.btn-login {
    min-height: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: white !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.authentication .btn-white.btn-login:hover {
    opacity: 0.8 !important;
    transition: opacity 0.2s ease-in-out !important;
}

.authentication .btn-white.btn-login:focus {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

/* Ensure validation error messages don't interfere with form field interaction */
.authentication .invalid-feedback {
    position: relative !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Ensure form controls stay clickable even with validation errors */
.authentication .form-control {
    position: relative !important;
    z-index: 2 !important;
}
.form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

html[data-theme-mode="dark"] .authentication .card.custom-card .form-control:autofill {
    background-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
}
.slogan-block {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    z-index: 20;
}
.slogan-block .main-text {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
}
.slogan-block .secondary-text {
    font-size: 1.25rem;
    font-weight: 200;
    margin: 0;
}

/* Mobile styles */
@media (max-width: 575.98px) {
    .authentication .card.custom-card {
        border: none !important;
    }

    .authentication .card.custom-card .card-body {
        padding: 1rem !important;
    }
}
