/* login_style.css */

/* Reset default browser styling so there is no unneccesary blank spaces at the top that may mess it up for the users viewing */
body, h1, form, input, 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 spacing around the edges so it does not feel constricted and makes it easier to read */
}

/* Center the login container */
.container {
    background-color: #ffffff; /* White background for the login POST form */
    border: 2px solid #4caf50; /* Green border to continue the sites look and feel from the main page */
    border-radius: 15px; /* Rounded corners for a modern, slick look */
    padding: 30px;
    width: 100%;
    max-width: 400px; /* Makes the container responsive depending on what device the user looks at it from*/
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Strong shadow for focus and contrasting against the background */
}

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

/* Input field styling */
input[type=text],
input[type=password] {
    width: 100%; /* Full-width input */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded corners for inputs */
    font-size: 1rem; /* Comfortable text size */
    background-color: #f9f9f9; /* Light background so it does not interfere with viewing typed in credentials*/
}

/* Focus effect for input fields */
input:focus {
    border-color: #6c63ff; /* Blue-violet for focus */
    outline: none; /* Removes default focus outline */
    background-color: #fff; /* Slight emphasis on focus */
}

/* Submit button styling */
.loginbtn {
    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 */
}

/* Hover effect for the button */
.loginbtn:hover {
    background-color: #5a55d6; /* Darker shade for hover */
}

/* Styling for horizontal rules */
hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 25px;
}

/* Link styling */
a {
    color: #6c63ff; /* Matches the branding color */
    text-decoration: none; /* Removes underline for a cleaner look */
    transition: color 0.3s ease; /* Smooth transition effect */
}

a:hover {
    color: #5a55d6; /* Darker shade on hover */
}

/* Signin/login section styling */
.signin {
    background-color: #f9f9f9; /* Light backgrounds to match the inputs */
    text-align: center;
    padding: 10px;
    border-radius: 0 0 15px 15px; /* Rounded corners at the bottom to match the container */
    font-size: 0.9rem; /* Subtle text size */
    width: 100%; /* Full width to match the container */
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
    border-top: 1px solid #ccc; /* Adds a subtle separator */
}

/* Mobile-friendly adjustments if user were to view on phone instead */
@media (max-width: 500px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}
