/* --- Desktop/General Form Styling --- */
.login-container {
    max-width: 450px; /* Constrain width on desktop for readability */
    margin: 60px auto; /* Center the form block */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    text-align: center; /* Center the title and instructions */
}

.login-container h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 15px;
}

.login-container .form-instructions {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Style the form elements generated by {{ form.as_p }} */
.login-container form p {
    text-align: left; /* Align labels/inputs left */
    margin-bottom: 15px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.login-container input[type="email"],
.login-container input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
}

/* Button Styling */
.login-container .btn-primary {
    width: 100%; /* Make button full width */
    padding: 12px;
    margin-top: 15px;
    
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-container .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Back to Login Link */
.login-container .back-to-login {
    margin-top: 25px;
}

/* ---------------------------------------------------------------------- */
/* --- Responsive Adjustments (Max 768px: Tablets/Mobiles) --- */
/* ---------------------------------------------------------------------- */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%; /* Take full width on mobile/tablet */
        margin: 0; /* Remove side margins */
        padding: 30px 15px; /* Adjust padding for mobile screens */
        box-shadow: none; /* Remove shadow for a cleaner full-width look */
        border-radius: 0;
        min-height: 100vh; /* Takes up the full screen height */
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Stretch content like form fields */
    }

    .login-container h2 {
        font-size: 1.8em;
    }
    
    .login-container .btn-primary {
        padding: 15px; /* Larger tap target on mobile */
        font-size: 1em;
    }
}