/* Register and Login Pages */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #333;
    margin: 40px 0;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between form elements */
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

form textarea {
    height: 100px;
}

form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

form button:hover {
    background-color: #0056b3;
}

/* New CSS for placing the links and button in a row */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-footer a {
    color: #3d7ff9;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-footer button {
    margin-left: 1px; /* Space between link and button */
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    form {
        padding: 15px;
        max-width: 80%; /* Adjust form width for small screens */
    }

    form input,
    form select,
    form textarea {
        font-size: 12px; /* Smaller font size for input elements */
        padding: 10px;
    }

    form button {
        padding: 10px 14px;
        font-size: 16px;
    }

    .form-footer {
        flex-direction: column; /* Stack links and button vertically */
        align-items: flex-start;
    }

    .form-footer p {
        margin: 10px 0 0; /* Margin adjustment for text and link */
    }
}
