/* State-of-the-Art CSS for IsolatERP Login & Onboarding */

body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #09090b;
}

.kt-login.kt-login--v1 .kt-login__aside {
    width: 480px !important;
    background: radial-gradient(circle at top, #181922 0%, #0d0e14 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kt-login__body {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.account-con {
    position: relative;
    padding: 0px !important;
}

/* Beautiful enterprise showcase on the right */
.account-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(9, 9, 11, 0.9) 0%, rgba(30, 27, 75, 0.7) 100%), url(/Common/Images/Icons/account_background.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#login-logo {
    width: 280px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}
#login-logo:hover {
    transform: scale(1.02);
}

#login-charts {
    width: 70%;
    max-width: 550px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}
#login-charts:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
}

#login-txt {
    font-size: 1.15rem;
    text-align: center;
    margin: 1.5rem 3rem;
    color: #a1a1aa;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.login-text-upper {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem !important;
}

.kt-grid.kt-grid--ver-desktop.kt-grid--desktop > .kt-grid__item.kt-grid__item--fluid,
.kt-grid.kt-grid--ver-desktop.kt-grid--desktop > .kt-grid__item.kt-grid__item--fluid-desktop {
    height: 100%;
}

.kt-grid.kt-grid--ver-desktop.kt-grid--desktop {
    height: 100vh;
    display: flex;
}

.kt-login__title h3 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.05rem;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
}

.account-btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Gradient Activation & Login Buttons */
.btn-activation,
.btn-back {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border-radius: 8px;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-activation {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-activation:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}
.btn-activation:active {
    transform: translateY(0);
}

.btn-back {
    background-color: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-back:hover {
    background-color: #3f3f46;
    color: #fff;
    transform: translateY(-2px);
}

/* Capsule Form Inputs with Glassmorphism */
.email-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    caret-color: #6366f1;
}

.email-input:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.email-input input,
.email-input input.form-control,
.email-input input:focus,
.email-input input.form-control:focus,
.email-input input:active,
.email-input input.form-control:active {
    flex-grow: 1;
    border: none !important;
    outline: none !important;
    font-size: 0.95rem;
    font-weight: 700 !important;
    background: transparent !important;
    color: #ffffff !important;
    padding-left: 10px;
    box-shadow: none !important;
}

.email-input input::placeholder {
    color: #71717a;
}

.email-input i {
    font-size: 1.1rem;
    color: #a1a1aa;
    transition: color 0.3s ease;
}
.email-input:focus-within i {
    color: #6366f1;
}

.email-input input:-webkit-autofill,
.email-input input:-webkit-autofill:hover, 
.email-input input:-webkit-autofill:focus, 
.email-input input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #181922 inset !important;
    box-shadow: 0 0 0px 1000px #181922 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Social Logins Divider styling */
.kt-login__divider {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.kt-login__divider span {
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.kt-login__divider a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kt-login__divider a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.kt-login__divider a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Account Footer & Links */
.kt-login__account {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.kt-login__account a {
    color: #a1a1aa !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    margin: 5px 10px;
}
.kt-login__account a:hover {
    color: #6366f1 !important;
    text-decoration: underline;
}

.pipe-divider {
    color: rgba(255, 255, 255, 0.15);
}

/* Additional UI States */
.account-low {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.account-low label,
.account-low a {
    color: #a1a1aa;
    transition: color 0.3s ease;
}
.account-low a:hover {
    color: #6366f1;
}

.kt-checkbox input:checked ~ span:after {
    border-color: #6366f1;
}

/* Error message layout styling */
.custom-alert {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.custom-password-check {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.account-login-con img {
    width: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.one-line-text-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.account-login-con {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Media Queries for Perfect Responsive Experience */
@media only screen and (max-width: 1024px) {
    .kt-login.kt-login--v1 .kt-login__aside {
        width: 100% !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 3rem 2rem !important;
    }

    .kt-grid.kt-grid--ver-desktop.kt-grid--desktop {
        flex-direction: column-reverse;
        height: auto;
    }

    .kt-grid.kt-grid--ver-desktop.kt-grid--desktop > .kt-grid__item.kt-grid__item--fluid {
        height: 40vh;
    }

    #login-txt {
        display: none;
    }

    .account-bg {
        justify-content: center;
        padding: 2rem;
    }
}

@media only screen and (max-width: 524px) {
    .kt-login__title h3 {
        font-size: 1.8rem;
    }

    #login-logo {
        width: 220px;
    }
}