
/* login_style.css */

/* Reset margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-image: url('bg.jpg'); /* Ensure you have bg.jpg in your folder */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
}

/* Container for the login form */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Form elements styles */
label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
    display: inline-block;
}

input[type="text"],
input[type="password"],
input[type="email"] { /* Added input type email */
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

input[type="submit"],
button[type="submit"] { /* Added button type submit */
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover,
button[type="submit"]:hover { /* Added button type submit */
    background-color: #45a049;
}

/* Add focus effect to input fields */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus { /* Added input type email */
    border: 1px solid #4CAF50;
    outline: none;
}

/* Styling for messages */
.message { /* New class for styling messages */
    text-align: center;
    margin-bottom: 15px;
    color: #333; /* Adjust color for visibility on white background */
    font-weight: bold;
}

.message.error { /* Optional: specific style for error messages */
    color: #d9534f; /* Red color for errors */
}


/* Styling for form container on mobile */
@media (max-width: 500px) {
    .form-container { /* Changed 'form' to '.form-container' for consistency */
        width: 90%;
    }
}

/* Form container */
form {
    background-color: rgba(255, 255, 255, 0.9); /* White background with transparency */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    margin: auto;
}

/* Form elements styles */
label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
    display: inline-block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Add focus effect to input fields */
input[type="text"]:focus,
input[type="password"]:focus {
    border: 1px solid #4CAF50;
    outline: none;
}

/* Styling for form container on mobile */
@media (max-width: 500px) {
    form {
        width: 90%;
    }
}
