/* 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/background.webp') 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 #e0e0e0;
    border-top: 4px solid #666666;
    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 {
    height: 100vh;
}


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;
}

html[data-theme-mode="dark"] .authentication .card.custom-card .form-control::placeholder {
    color: #5f5f5f !important;
    font-weight: 300 !important;
    font-size: 1rem !important;
    opacity: 1 !important;
}

.authentication .form-control::placeholder {
    color: #5f5f5f !important;
    font-weight: 300 !important;
    font-size: 15rem !important;
    opacity: 1 !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: #000000 !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 and tablet styles - reset overlay effect */
@media (max-width: 1199.98px) {
    .auth-right-column {
        margin-left: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .auth-right-column .auth-content {
        margin-left: 0 !important;
    }

    .auth-footer {
        margin-left: 0 !important;
    }
}

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

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

/* Auth right column - flex layout (additional styles) */
.auth-right-column {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    margin-left: -40px;
}

.auth-right-column .auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 40px;
}

/* Auth footer - bottom of right column */
.auth-footer {
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-left: 40px;
}

.auth-footer .public-links {
    font-size: 1rem;
}
.form-label {
    font-size: 1rem !important;
    font-weight: 400 !important;
}
.auth-main-text {
    font-weight: 500;
    font-size: 38px;
    line-height: normal;
}

/* Responsive styles for smaller desktop screens */
@media (min-width: 1200px) and (max-width: 1599px) {
    .auth-main-text {
        font-size: 28px;
    }

    .authentication .form-control::placeholder,
    html[data-theme-mode="dark"] .authentication .card.custom-card .form-control::placeholder {
        font-size: 0.8rem !important;
    }
}

@media (min-width: 1600px) and (max-width: 1799px) {
    .auth-main-text {
        font-size: 32px;
    }

    .authentication .form-control::placeholder,
    html[data-theme-mode="dark"] .authentication .card.custom-card .form-control::placeholder {
        font-size: 0.85rem !important;
    }
}

/* Select dropdown arrow styling */
.authentication select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 35px !important;
}
