/* Keyframes for the pop-out animation */
@keyframes popOut {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

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

.header h1 {
    margin: 0;
    color: #333;
    font-size: 36px;
    font-weight: 700;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    flex-direction: row;
    animation: popOut 0.6s ease-out; /* Apply the pop-out animation */
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-column {
    background-color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
}

.right-column {
    background: url('image2.jpg') no-repeat center center;
    background-size: cover;
}

.login-form {
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #555;
    font-weight: bold;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    position: relative; /* Needed for positioning the toggle icon */
}

.login-form input:focus {
    border-color: #007bff;
    outline: none;
}

.login-form .password-container {
    position: relative;
}

.login-form .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 15px; /* Reduced size for the icon */
    color: #007bff;
}

.login-form button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #0056b3;
}

.captcha-container {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    margin-bottom: 15px; /* Space below the CAPTCHA section */
}

.captcha-container img {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px; /* Space between the CAPTCHA image and the refresh button */
}

button.refresh-captcha {
    padding: 5px; /* Reduced padding to make the button size match the icon size */
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: #fff;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon within the button */
    width: 30px; /* Set width to match the icon size */
    height: 30px; /* Set height to match the icon size */
}

button.refresh-captcha img {
    width: 16px; /* Icon size */
    height: 16px; /* Icon size */
    margin: 0; /* Remove margin inside the button */
}

button.refresh-captcha:hover {
    background-color: #f0f0f0;
}

button.refresh-captcha:focus {
    outline: none;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .login-form h2 {
        font-size: 24px;
    }
    .login-form input {
        font-size: 14px;
        padding: 12px;
    }
    .login-form button {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    .left-column,
    .right-column {
        flex: none;
        width: 100%;
        height: auto;
    }
    .right-column {
        height: 300px;
        background-position: center center;
    }
}
