﻿* {
    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:not(:disabled):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;
}



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .overlay.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.verify-options-container {
    transition: all 0.2s ease;
}


.otp-popup-container {
    opacity: 0;
    transform: translateX(130%);
    pointer-events: none;
    position: absolute;
    transition: all 0.2s ease;
}

.slide-out {
    opacity: 0;
    transform: translateX(-110%);
    pointer-events: none;
}

.slide-in {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.verify-popup {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 454px;
    padding: 36px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-align: center;
    animation: popupIn 0.35s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .verify-popup h2 {
        font-size: 1.6rem;
        margin-bottom: 8px;
        color: #1e1e1e;
    }

    .verify-popup .subtitle {
        font-size: 0.95rem;
        color: #6b7280;
        margin-bottom: 24px;
    }

    .verify-popup .close {
        position: relative;
        top: -164px;
        left: 402px;
    }


.verify-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

    .option-card:not(:disabled):hover {
        background-color: #eef2ff;
        border-color: #6366f1;
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
    }

    .option-card.disabled {
        background-color: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
    }




.icon-box {
    background-color: #eef2ff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.3rem;
}


.option-text h4 {
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 4px;
}

.option-text p {
    font-size: 0.88rem;
    color: #6b7280;
}


.arrow {
    margin-left: auto;
    color: #9ca3af;
    font-size: 1rem;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupIn {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


@media (max-width: 480px) {
    .verify-popup {
        width: 90%;
        padding: 24px 20px;
    }
}


.otp-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 26px;*/
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 18px;
}

    .otp-inputs input {
        width: 42px;
        height: 42px;
        text-align: center;
        font-size: 1.2rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        transition: border-color 0.2s;
    }

        .otp-inputs input:focus {
            border-color: #6366f1;
            outline: none;
            box-shadow: 0 0 5px rgba(99,102,241,0.3);
        }

.verify-btn {
    /*width: 95%;*/
    position: relative;
    padding: 10px;
    background-color: var(--button-bc);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 26px 0px;
}

    .verify-btn:hover {
        background-color: var(--button-hover);
    }

.resend {
    color: #2563eb;
    font-size: 0.9rem;
    text-decoration: none;
}

    .resend:hover {
        text-decoration: underline;
    }




.resend-chngPref {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.icon-box .fa-times {
    color: #db5555;
}

#otp-validation-msg {
    display: none;
    color: #db5555;
    margin-top: 10px;
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
}

#verify-otp-btn[disabled="disabled"] {
    pointer-events: none;
    background-color: #929292;
    text-decoration: none;
    cursor: not-allowed;
}

.disabled {
    pointer-events: none;
    color: gray;
    text-decoration: none;
    cursor: not-allowed;
}


/* Hide spinner by default */
.verify-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* When loading */
.verify-btn.loading .text {
    opacity: 0.5;
}

.verify-btn.loading .spinner {
    display: inline-block;
}

.resend.disabled i {
    display: initial !important;
}