﻿body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
}

.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Max width for desktop */
    box-sizing: border-box; /* Include padding in width calculation */
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #333;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block; /* Make labels stack on top of inputs */
        margin-bottom: 5px;
        font-weight: bold;
        color: #555;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Ensure readability on mobile */
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn {
    display: inline-block; /* For general button styles */
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    width: 100%; /* Make button full width */
    margin-top: 10px;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
    }

/* Styles for validation messages */
span[role="alert"] { /* Targets the validator controls */
    font-size: 0.9em;
    margin-top: 5px;
    display: block; /* Ensures message is on its own line */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .login-container {
        margin: 20px; /* Add some margin on smaller screens */
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 15px;
        padding: 15px;
    }

        .login-container h2 {
            font-size: 1.8em;
            margin-bottom: 20px;
        }

    .btn-primary {
        padding: 12px;
        font-size: 1rem;
    }
}
