body {
    font-family: Arial, sans-serif;
    background-image: url(img/new.jpg);
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    height: 100vh;
    overflow-y: auto; /* Enable vertical scrolling */
}

.container {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px; /* Adjusted for better vertical scrolling */
    margin: 20px auto; /* Added auto margin to center horizontally */
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 50px; /* Adjusted size */
    margin-right: 10px; /* Adjusted margin */

}

h1 {
    color: green;
    margin: 0;
}
h2{
    color: green;
    text-align: center;
}
.registration-form {
    display: flex;
    flex-direction: column; /* Changed to vertical layout */
    gap: 20px;
}

.registration-form .form-group {
    flex: 1 1 100%; /* Full width for vertical layout */
}

.registration-form label {
    display: block;
    margin-bottom: 5px;
    color: black;
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.registration-form input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.register-button {
    width: 100%;
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.register-button:hover {
    background-color: darkred;
}

.back-to-login {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: red;
    text-decoration: none;
    border: red;
}

.back-to-login:hover {
    text-decoration: underline;
}

.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: green;
    color: white;
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
}

footer {
    margin-top: 20px;
    color: red;
    font-size: 0.9em;
    text-align:center;
}
