body {
    font-family: Arial, sans-serif;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.main-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    width: 800px;
}

.left-panel {
    background: #012068;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    width: 50%;
}

.left-panel img {
    width: 300px;
    height: 300px;
}

.left-panel h2 {
    margin: 20px 0;
    font-size: 24px;
}

.right-panel {
    padding: 40px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.right-panel input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.right-panel button {
    width: 30%;
    padding: 10px;
    background: #012068;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.right-panel button:hover {
    background: #4659E2;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.alert-warning {
    display: flex;
    align-items: center;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-warning .icon {
    margin-right: 10px;
}

.password-container {
    position: relative;
    width: fit-content;
    margin-bottom: 10px;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 43%;
    transform: translateY(-40%);
    cursor: pointer;
    color: grey; /* Change to your preferred color */
    font-size: 0.9rem; /* Change to your preferred size */
}

.right-panel a {
    text-decoration: none; /* Removes the underline */
    color: #012068; /* Optional: Makes the link color the same as the surrounding text */
}

.right-panel a:hover {
    text-decoration: underline; /* Optional: Adds underline on hover for better user experience */
}

/* Media Query for tablets and smaller screens */
@media only screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        width: 90%;
        margin: auto;
    }

    .left-panel {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .left-panel img {
        width: 150px;
        height: auto;
    }

    .right-panel {
        width: 100%;
        padding: 20px;
    }

    .right-panel h2 {
        font-size: 20px;
        text-align: center; /* Center align the heading */
    }

    .right-panel input,
    .right-panel button {
        width: calc(100% - 20px); /* Adjusting width and accounting for padding */
        margin: 10px 0; /* Adding margin between elements */
    }

    .right-panel button {
        width: 100%; /* Full width for the button */
    }

    .password-container {
        padding-right: 0;
    }

    .toggle-password {
        right: 5px;
    }
}

/* Media Query for mobile phones */
@media only screen and (max-width: 480px) {
    .main-container {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .left-panel {
        padding: 15px;
    }

    .left-panel img {
        width: 100px;
    }

    .left-panel h2 {
        font-size: 18px;
    }

    .right-panel {
        padding: 15px;
    }

    .right-panel h2 {
        font-size: 18px;
    }

    .right-panel input,
    .right-panel button {
        width: 100%;
        margin: 5px 0;
    }

    .right-panel button {
        font-size: 14px;
    }

    .toggle-password {
        font-size: 0.8rem;
    }
}




.form-header img {
    margin-right: 0px;
    margin-top: 10px;
    /* Space between image and header */
}

.container {
    background-color: #fff;
    padding: 30px 60px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    /* Adjusted width for demonstration */
    width: 100%;
    text-align: column;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.register-container {
    text-align: center;
    margin-top: 20px;
}



h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
}

.form-row {
    display: flex;
    flex-wrap: row;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-row {
    color: #fff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="gender"],
input[type="address"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    /* Input fields take up full width */
}

.container1 {
    text-align: center;
}

.container1 p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.container1 a {
    color: #012068;
    text-decoration: none;
}



.btn1 {
    display: inline-block;
    margin: 10px;
    /* Optional: Add some margin around the buttons */
    padding: 10px 20px;
    /* Optional: Add some padding to the buttons */
}

.green-btn1 {
    border-color: #012068;
    color: white;
}

.btn {
    justify-content: center;
    width: 30%;
    padding: 15px;
    background-color: #012068;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #4659E2;
}

.container1 p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.container1 a {
    color: #012068;
    text-decoration: none;
}

.container1 a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .input-group {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-top: 20px;
    }
}
