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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container for the login form */
.login-container {
    background-color: #1e1e1e;
    border: 1px solid #424242;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Form heading */
.login-container h2 {
    margin-bottom: 1.5rem;
    color: #90caf9;
    font-size: 1.8rem;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form group for label-input pairs */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Label styling */
label {
    color: #b0bec5;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Input fields */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #3a3a4b;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #90caf9;
    box-shadow: 0 0 5px rgba(144, 202, 249, 0.5);
}

/* Placeholder styling */
input::placeholder {
    color: #b0b0b0;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(44, 102, 249, 0.5);
}

/* Flash message styling */
.error {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        max-width: 90%;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    label,
    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    .form-group {
        gap: 0.4rem;
    }
}
