﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body.light-theme {
    --login-section-bc: linear-gradient(135deg, #265a8c, #4e8cbf);
    --login-box-bc: #f2f2f2;
    --login-box-h2-clr: #6ec4db;
    --white-black: #333;
    --black-white: #ffffff;
    --button-bc: #73e1ff;
    --button-clr: rgb(255, 255, 255);
    --button-hover: #4e8cbf;
    --login-header-bg: #73e1ff;
    --login-header-bdr-top: #2b6093;
    --login-header-bdr-left: #73e1ff;
    --switch-bg: rgba(255, 255, 255, 0.2);
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-theme {
    --login-section-bc: linear-gradient(135deg, rgba(36, 46, 77, 0.9), rgba(119, 109, 105, 0.9));
    --login-box-bc: rgba(0, 0, 0, 0.15);
    --login-box-h2-clr: #07d3b8;
    --white-black: #ffffff;
    --black-white: #333;
    --button-bc: #07d3b8;
    --button-clr: white;
    --button-hover: #63ccbe;
    --login-header-bg: rgba(0, 0, 0, 0.25);
    --login-header-bdr-top: #07d3b8 /*#b9b9b9*/;
    --login-header-bdr-left: rgb(0 0 0 / 0%);
    --switch-bg: rgba(255, 255, 255, 0.9);
    --box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
}

body {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #e0f7ff, #ffffff);
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #2c1dff, #00b0ff);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .left-panel h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .left-panel p {
        font-size: 18px;
        max-width: 300px;
        text-align: center;
    }

.login-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--login-section-bc);
}

/* 93deff59 */
.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--login-box-bc);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    /* border-radius: 16px; */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

    .login-box h2 {
        text-align: center;
        margin-bottom: 20px;
        color: var(--login-box-h2-clr);
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        color: var(--white-black);
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        /* border-radius: 10px; */
        font-size: 14px;
        background: #fff;
    }

        .form-group input:focus {
            outline: none;
            border-color: #0078d7;
        }

.password-wrapper {
    position: relative;
}

    .password-wrapper span {
        position: absolute;
        top: 31px !important;
        right: 10px;
        cursor: pointer;
        font-size: 16px;
    }

button {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: var(--button-bc);
    color: var(--button-clr);
    font-size: 15px;
    /* border-radius: 10px; */
    cursor: pointer;
    transition: background 0.3s ease;
}


    button:hover {
        background-color: var(--button-hover);
        color: white;
        transition: 0.3s;
    }

.message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-header {
    height: 50px;
    background: var(--login-header-bg);
    position: relative;
}

    .login-header:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        border-top: 50px solid var(--login-header-bdr-top);
        border-left: 50px solid var(--login-header-bdr-left);
        width: 0;
    }

.clsSignIn {
    color: white;
    text-align: center;
    padding-top: 10px;
}

.clsLogo {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
}

.clsLogoImg {
    width: 150px;
    height: 30px;
}

.clsLogoImgGrp {
    width: 100%;
    height: 200px;
}

.clsRememberMeText {
    color: var(--white-black);
}

#dvLDAP {
    float: left;
}

#dvRM {
    float: right;
}

.clsCheckBox {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.loginPass {
    padding-top: 10px;
}

.field-validation-error {
    padding-bottom: 15px;
    display: inline-flex;
}

#loginPlaceholder-error {
    color: orange;
}

#passwordPlaceholder-error {
    color: orange;
}

#lblRM {
    padding-left: 15px;
}

#login_submit {
    margin-top: 15px;
}

.clsTutorial {
    position: absolute;
    top: 19px;
    right: 105px;
    color: white;
}

.clsTutorialLbl {
    color: #fff;
    align-self: center;
    text-decoration: none;
}

.alert-text {
    color: orangered;
}


/* Small Theme Toggle Switch */
.theme-toggle-container {
    position: absolute;
    top: -1px;
    right: 25px;
    z-index: 10;
}

.theme-switch-small {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 20px;
}

.theme-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-label {
    position: relative;
    display: block;
    height: 100%;
    background-color: var(--switch-bg);
    border-radius: 26px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .theme-toggle-label .slider {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 2px;
        background-color: white;
        border-radius: 50%;
        transition: 0.4s;
        z-index: 1;
    }

.theme-toggle-input:checked + .theme-toggle-label .slider {
    transform: translateX(32px);
    background-color: black;
}

.theme-toggle-input:checked + .theme-toggle-label .light {
    opacity: 0;
}

.theme-toggle-input:checked + .theme-toggle-label .dark {
    opacity: 1;
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 2;
}

    .theme-toggle-icon.light {
        left: 24px;
        color: white;
        font-size: 10px;
        bottom: -2px;
    }

    .theme-toggle-icon.dark {
        left: 8px;
        color: black;
        font-size: 10px;
        bottom: -2px;
        opacity: 0;
    }

.input-icon {
    position: relative;
}

    .input-icon .fa {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        font-size: 1rem;
        pointer-events: none;
    }

    .input-icon input.form-control {
        padding-left: 2.5em;
    }

/* Only target the toggle eye icon */
#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}

#kt_login_force_sign_in_submit {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

.alert-danger {
    background-color: #ff367a;
    padding: 8px 16px;
    margin-bottom: 16px;
}

#dvAlertMessage {
    color: #fff !important;
    font-size: 14px;
}
