/* Basic Reset & Font */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.login-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 95%;
    max-width: 500px; /* A good size for a single form */
    box-sizing: border-box;
}

.login-box {
    text-align: center;
    width: 100%;
}

.login-img {
    width: 150px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 25px;
}

h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.register-link {
    margin-top: 25px;
    font-size: 0.95em;
    color: #7f8c8d;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Django Messages Styling */
.messages {
    margin-top: 20px;
    font-size: 0.9em;
}

.messages p {
    margin: 5px 0;
    padding: 10px;
    border-radius: 6px;
}

.messages .success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.messages .error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #e53935;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-container {
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
        min-height: 100vh;
    }
}