/* style_register.css */

/* Reset some default browser styling for consistency */
body, h1, form, input, label, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9; /* Light grey background */
    color: #333; /* Dark gray text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px; /* Adds a bit of spacing around the edges */
}

/* Center the form with some space around it */
form {
    background-color: #ffffff; /* White background for the form */
    border: 2px solid #4caf50; 
    border-radius: 15px; /* Rounded corners for a softer look */
    padding: 30px;
    width: 100%;
    max-width: 450px; /* Makes the form responsive */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow for focus */
    position: relative;
}

/* Form heading styling */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #6c63ff; /* Branding color */
}

/* Label styling */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Input fields styling */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%; /* Full-width input */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded input fields */
    font-size: 1rem; /* Comfortable text size */
    background-color: #f9f9f9; /* Light background */
}

/* Change input border color on focus */
input:focus {
    border-color: #6c63ff; /* Modern blue-violet color for focus */
    outline: none; /* Removes default focus outline */
    background-color: #fff; /* Slight emphasis on focus */
}

/* Button styling */
button[type="submit"] {
    background-color: #4caf50; 
    color: white; /* White text for contrast */
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%; /* Full-width button */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

/* Change button color on hover */
button[type="submit"]:hover {
    background-color: #5a55d6; /* Darker shade for hover */
}

/* Subtle spacing between elements */
form > * {
    margin-bottom: 10px;
}

/* Error message styling */
#error {
    text-align: center;
    font-size: 0.9rem;
    margin-top: -10px;
}

/* Mobile-friendly adjustments */
@media (max-width: 500px) {
    form {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}
