body {
    background-color: #f8f9fa;
    background-image: url('../image/bg3.png');
    backdrop-filter: blur(0px);
    background-size: cover; /* Ensure the background image covers the entire screen */
    background-position: center center;  /* Center the background image */
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-attachment: fixed; /* Optional: Make background fixed on larger screens */
}

/* For smaller screen sizes like mobile */
@media (max-width: 768px) {
    body {
        background-size: 120%; /* Slight zoom effect for mobile */
        background-position: center center;  /* Center the background image */
        backdrop-filter: blur(5px); /* Slight blur for mobile (optional) */
    }
}

/* For very small screens like 317x592 */
@media (max-width: 317px) and (max-height: 592px) {
    body {
        background-size: 160%; /* Increase the zoom effect for small screen sizes */
        background-position: center center;  /* Center image */
        backdrop-filter: blur(8px); /* Increase blur if needed */
    }
}



/* Ensure the background image adjusts well on all screen sizes */
@media (max-width: 1200px) {
    body {
        background-size: cover;  /* Keep the image covering the entire screen */
        background-position: center center; /* Ensure the image is centered */
    }
}

@media (max-width: 768px) {
    body {
        background-size: cover;  /* Ensure the image covers the entire screen */
        background-position: center center; /* Keep the image centered */
    }
}

@media (max-width: 576px) {
    body {
        background-size: cover;  /* Ensure the image covers the entire screen */
        background-position: center center; /* Ensure the image is centered */
    }
}


.login-form-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.login-form {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 45%;
    z-index: 1;
}

.login-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000; /* Sign in color changed to black */
    text-align: center;
}

.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form .input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.login-form .input-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-form .input-group .form-control {
    padding-left: 40px;
    border-radius: 30px;
    border: 1px solid #ccc;
}

.login-form .btn-primary {
    background-color: #007bff;
    border: none;
    width: 100%;
    border-radius: 5px; /* Less rounded corners */
    margin-top: 20px;
    padding: 15px; /* Increased padding for a bigger button */
    font-size: 16px; /* Adjust font size */
    transition: background-color 0.3s, transform 0.2s; /* Transition for smooth hover effect */
}

.login-form .btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slightly grow on hover */
}

.title-container {
    text-align: center;
    width: 45%;
    position: relative;
    z-index: 1;
    margin-right: 20px;
    top: -10x;
}

.title-container h1 {
    font-size: 48px;
    font-weight: bold;
    color: #193866 ; /* OSA color changed to black */
}

.divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 5px;
    background-color: #193866 ;
    z-index: 0;
    transform: translateX(-50%);
}

.title-container img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: -140px;
    position: relative;
    z-index: 1;
}

.fade-in {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.fade-in.show {
    display: block;
    opacity: 1;
}

.input-group .input-icon {
    font-size: 1.2rem;
    color: #495057;
    margin-right: 10px;
}

.form-check-label {
    color: #000000;
}

.text-white {
    color: #fff;
}

.text-center.mb-4 {
    color: #193866 ;
    font-family: 'YourFontName', sans-serif; /* Replace 'YourFontName' with your desired font */
    font-size: 30px; /* Title size */
    font-weight: bold; /* Makes the font bold */
    text-transform: uppercase; /* Optional: makes the text uppercase */
    margin-bottom: 20px; /* Optional: adjust spacing below the title */
}

.btn-custom {
    background-color: #007bff;
    border: none;
    width: 100%;
    border-radius: 5px; /* Less rounded corners */
    padding: 15px; /* Increased padding for a bigger button */
    font-size: 16px; /* Adjust font size */
    margin-top: 10px; /* Adjust space above the button */
    font-weight: bold;
    color: white; /* Text color */
    transition: background-color 0.3s, transform 0.2s; /* Transition for smooth hover effect */
}

.btn-custom:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slightly grow on hover */
    color: white; /* Text color */
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

#error-message {
    display: none; /* Initially hidden */
}

/* Media Queries for responsiveness */
/* Media Queries for responsiveness */

@media (max-width: 1200px) {
    .login-form-container {
        flex-direction: column;
        align-items: center;
    }

    .login-form, .title-container {
        width: 80%;
    }

    .title-container h1 {
        font-size: 36px;
    }

    /* Adjust the divider line for smaller screens */
    .divider-line {
        left: 0;
        top: 50%;
        width: 100%; /* Make it horizontal */
        height: 5px; /* Adjust height for horizontal divider */
        transform: translateY(-50%);
    }

    /* Adjust the image for smaller screens */
    .title-container img {
        width: 180px; /* Adjust image width */
        margin-top: 20px; /* Added margin for proper spacing */
    }

    /* Allow scrolling for mobile screens */
    .login-form-container {
        overflow-y: auto;
        max-height: 100vh; /* Ensure it doesn't exceed the viewport */
    }
}

@media (max-width: 768px) {
    .login-form, .title-container {
        width: 90%;
    }

    .title-container h1 {
        font-size: 30px;
    }

    .login-form h2 {
        font-size: 20px;
    }

    .login-form .btn-primary {
        font-size: 14px;
        padding: 12px;
    }

    /* Adjust the divider line for smaller screens */
    .divider-line {
        left: 0;
        top: 50%;
        width: 100%; /* Make it horizontal */
        height: 4px; /* Adjust height for horizontal divider */
        transform: translateY(-50%);
    }

    /* Adjust the image for smaller screens */
    .title-container img {
        width: 150px;
        margin-top: 20px; /* Added margin for proper spacing */
    }

    /* Allow scrolling for mobile screens */
    .login-form-container {
        overflow-y: auto;
        max-height: 100vh; /* Ensure it doesn't exceed the viewport */
    }
}

@media (max-width: 576px) {
    body {
        background-size: contain; /* Ensure background image scales properly */
    }

    .login-form, .title-container {
        width: 100%;
        padding: 10px;
    }

    .title-container h1 {
        font-size: 24px;
    }

    .login-form h2 {
        font-size: 18px;
    }

    .login-form .btn-primary {
        font-size: 14px;
        padding: 10px;
    }

    /* Adjust the divider line for very small screens */
    .divider-line {
        left: 0;
        top: 50%;
        width: 100%; /* Make it horizontal */
        height: 3px; /* Adjust height for horizontal divider */
        transform: translateY(-50%);
    }

    /* Adjust the image for very small screens */
    .title-container img {
        width: 120px;
        margin-top: 30px; /* Increased margin for proper spacing */
    }

    /* Allow scrolling for mobile screens */
    .login-form-container {
        overflow-y: auto;
        max-height: 100vh; /* Ensure it doesn't exceed the viewport */
    }

    .text-center.mb-4 {
        font-size: 20px;
    }
}
