:root {
    /* Uses the same variables as your homepage.css for consistency */
    --primary-font: 'Vazirmatn', sans-serif;
    --secondary-font: 'Playfair Display', serif;
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #C5BBAE;
}

/* --- Main Form Layout --- */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Ensures the form is centered vertically */
    padding: 4rem 2rem;
}

.form-wrapper {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-family: var(--secondary-font);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Form Styles --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Style the input fields generated by Django's form */
.form-field input[type="text"],
.form-field input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--primary-font);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(197, 187, 174, 0.5);
}

/* Error Styling */
.field-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.form-error-summary {
    background-color: #fbeae5;
    color: #c0392b;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1rem;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    border: none; /* .btn-primary already has this, but it's good to be explicit */
    cursor: pointer;
}

/* Link to Sign up */
.form-footer-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #666;
}

.form-footer-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}