/* Apply a background to the entire body of the page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh; /* Full height of the viewport */
}


.error-message {
    color: red;
    margin-bottom: 10px;
}


/* Style for the form container */
.form-container {
    background-color: #fff; /* White background for the form */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    width: 100%;
    max-width: 400px; /* Maximum width of the form */
}

/* Style for each form (login and registration) */
.form {
    display: flex;
    flex-direction: column;
}

/* Style for form groups (label and input container) */
.form-group {
    margin-bottom: 20px; /* Spacing between each form group */
}

/* Style for form labels */
.form-group label {
    display: block;
    margin-bottom: 8px; /* Spacing between label and input */
}

/* Style for form inputs */
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style for the action buttons area (login, register, back to login) */
.form-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
}

/* Style for buttons */
.btn {
    padding: 10px;
    margin-bottom: 10px; /* Spacing between buttons */
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Additional style to ensure the form-actions do not stick to the form inputs */
.form-actions {
    margin-top: 20px;
}
