* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #1e3c8d;
    position: relative;
    overflow: hidden;
}

/* Add this new style for the background logo container */
.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0.2;  /* Adjust this value between 0 and 1 to control transparency */
}

.background-logo img {
    max-width: 50%;  /* Adjust size as needed */
    height: auto;
}

.login-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-section {
    padding: 40px;
    color: #1e3c8d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
    width: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    display: block;
    animation:
        logoBounceIn 1s ease-out ,
        logoPulseSlow 2s ease-in-out 2.3s infinite;
}






.logo-section h1 {
    font-size: 32px;
    text-align: center;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;  /* Text fades in from bottom */
}

.form-section {
    background: #ffffffdc;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s;  /* Form fades in after logo */
    animation-fill-mode: both;  /* Keeps the element invisible until animation starts */
}

.custom-input-size::placeholder {
    font-size: 1rem; /* Adjust this value as needed */
}

.small-font {
    font-size: 14px;
}


h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Stagger form group animations */
.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.6s; }
.form-group:nth-child(3) { animation-delay: 0.8s; }

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ffffffdc;
    border-radius: 5px;
    font-size: 14px;
}

select {
    background: #ffffffdc;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.forgot-password {
    color: #1e3c8d;
    text-decoration: none;
}

.btn-primary {
    background-color: #1e3c8d;
    border-color: #1e3c8d;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #152c66;
    border-color: #152c66;
    transform: translateY(-2px);  /* Button slightly raises on hover */
}
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
    }
    
    .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    }
    
    .alert-danger {
    background-color: #d4edda;
    color: #b81515;
    border: 1px solid #c3e6cb;
    }

/* Add new keyframes for curve animation */
@keyframes slideInCurve {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gradientMove {
    0% {
        background: linear-gradient(45deg, #4181f8aa 0%, #ffffff 100%);
    }
    50% {
        background: linear-gradient(45deg, #4181f8aa 0%, #ffffff 100%);
    }
    100% {
        background: linear-gradient(45deg, #4181f8aa 0%, #ffffff 100%);
    }
}


/* Update the curved shape styles */
.login-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffffdc;
    border-radius: 0 50% 50% 0;
    z-index: 0;
    animation: 
        slideInCurve 1.2s ease-out,
        gradientMove 8s ease-in-out infinite;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Add hover effect on the curve */
.login-container:hover::after {
    width: 51%;
    box-shadow: 8px 0 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1195px) {
    .form-section a {
       font-size: 14px;
    }
    .form-check {
        font-size: 14px;
    }

}
@media (max-width: 1020px) {
    .form-section a {
       font-size: 13px;
    }
    .form-check {
        font-size: 13px;
    }

}

@media (max-width: 992px) {
    .logo-section {
        position: relative;
        transform: none;
        top: auto;
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 20px;
        color: white;
    }

    .form-section {
        margin: 20px auto;
        padding: 30px;
    }
    
    .login-container::after {
        display: none;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .logo-section h1 {
        font-size: 28px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .form-section {
        max-width: 90%;
        margin: 15px auto;
        padding: 25px;
    }

    .logo-section {
        padding: 15px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    input, select {
        padding: 10px;
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 5px;
    }

    .logo-section h1 {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .form-section {
        max-width: 95%;
        padding: 20px;
        margin: 10px auto;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-section {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
        
    }

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

    input, select {
        padding: 8px;
        font-size: 14px;
    }

    .btn-primary {
        width: 100%;
        padding: 12px;
    }

    .logo-section h1 {
        font-size: 24px;
    }
}

/* Add keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


@keyframes logoBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(10px);
    }
    80% {
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}





/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .login-container::after {
        animation: none;
        transition: none;
    }
}




