:root {
    --primary: #3a4cb9;
    --primary-light: #536bef;
    --primary-gradient: linear-gradient(135deg, #3a4cb9, #536bef);
    --secondary: #6678f7;
    --dark: #232952;
    --text-muted: #7a85ad;
    --light: #f6f8ff;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #0c977f;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 8px rgba(58, 76, 185, 0.07);
    --shadow-md: 0 5px 15px rgba(58, 76, 185, 0.1);
    --shadow-lg: 0 8px 25px rgba(58, 76, 185, 0.15);
    --border-radius: 16px;
    --animation-duration: 0.5s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    overflow-x: hidden;
    padding: 15px;
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.pulse-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 30%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 2s infinite;
    box-shadow: 0 0 20px rgba(214, 51, 132, 0.3);
}

.logo-holder img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 2;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 51, 132, 0.6);
    }
    50% {
        box-shadow: 0 0 0 25px rgba(214, 51, 132, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 51, 132, 0);
    }
}

.login-container {
    display: flex;
    max-width: 1000px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 600px;
    width: 100%;
    position: relative;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease forwards 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-banner {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
    color: var(--white);
    text-align: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.banner-content h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.banner-blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.login-form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    margin-bottom: 20px;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid rgba(122, 133, 173, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    height: 60px;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.form-floating > label {
    padding: 15px 20px;
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.8) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

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

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    border: 2px solid rgba(122, 133, 173, 0.3);
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-login {
    height: 55px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(58, 76, 185, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 76, 185, 0.3);
    background: linear-gradient(135deg, #4155c7, #5e77ff);
}

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

.alert {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    border: none;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.alert-icon {
    margin-right: 12px;
    font-size: 18px;
    margin-top: 1px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 5px;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* Responsive styles */
@media (max-width: 991px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;

    }

    .login-banner {
        padding: 30px;
        min-height: 200px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .banner-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    body {
        padding: 0;
        background: var(--white);
    }

    .login-container {
        .login-container {
box-shadow: none;
border-radius: 0;
height: 100vh;
max-width: none;
width: 100%;
border: 1px solid #2b2a2a;
}

    }

    .login-banner {
        display: none; /* Hide banner on mobile */
    }

    .login-form-container {
        padding: 20px;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .form-control {
        height: 55px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-footer {
        margin-top: 20px;
    }

    .form-floating > label {
        padding: 15px;
    }
}
