body {
    min-height: 100vh;
    background-color: var(--bs-dark);
    display: flex;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Maintain original structure */
.image-side,
.login-side {
    flex: 1;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-side {
    flex: 1.2;
    background: var(--bs-dark);
    flex-direction: column;
    padding: 3rem;
    justify-content: space-between;
}

.login-side {
    background-color: var(--bs-dark);
}

/* Aurora Background Animation */
@keyframes aurora {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(2);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.5);
    }
}

.image-side::before,
.login-side::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    padding-top: 120%;
    border-radius: 50%;
    background-image: conic-gradient(from 0deg,
            var(--bs-primary),
            var(--bs-info),
            transparent 30%,
            var(--bs-primary));
    filter: blur(150px);
    opacity: 0.15;
    animation: aurora 20s linear infinite;
    z-index: 0;
}

.login-side::before {
    width: 150%;
    padding-top: 150%;
    opacity: 0.1;
    filter: blur(200px);
    animation-duration: 25s;
}

.login-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.logo-image {
    width: 100px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(88, 166, 255, 0.25);
}

.welcome-text {
    color: var(--bs-light);
    font-size: 32px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-subtext {
    color: var(--bs-secondary);
    font-size: 16px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Form styling with dark theme */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bs-light) !important;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.2);
    outline: none;
    color: var(--bs-light) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary);
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-control:focus+.form-icon {
    color: var(--bs-primary);
}

.btn-primary {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    color: white;
    border: none;
    padding: 1.2rem;
    width: 100%;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Image side content */
.image-content {
    color: white;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.date i {
    color: var(--bs-primary);
}

.tagline {
    z-index: 2;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.brand-name {
    font-weight: 700;
    color: var(--bs-primary);
}

.company-name {
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.custom-alert {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--bs-danger);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: #f8d7da;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.custom-alert i {
    font-size: 1.2rem;
    color: var(--bs-danger);
}

.account-locked {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--bs-warning);
    color: #ffeeba;
}

.account-locked i {
    color: var(--bs-warning);
}

/* Session Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.session-toast {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.session-toast i {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-hide {
    animation: slideOut 0.5s ease-out forwards;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

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

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--bs-primary);
}

/* Company Branding */
.company-branding {
    position: absolute;
    top: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    z-index: 2;
}

.company-name {
    font-weight: 600;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .image-side {
        display: none;
    }

    .login-side {
        flex: 1;
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-side {
        padding: 1.5rem;
    }

    .form-control {
        padding: 1.1rem 1rem 1.1rem 3rem;
    }

    .welcome-text {
        font-size: 28px;
    }

    .welcome-subtext {
        font-size: 15px;
        margin-bottom: 2rem;
    }

    .btn-primary {
        padding: 1rem;
    }

    .login-container {
        padding: 0;
    }
}