/* Global Form Styles - Brown/Beige Theme */

body {
    background: linear-gradient(135deg, #f5f0e8 0%, #ede7df 100%);
    min-height: 100vh;
    margin: 0;
}

.auth-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.auth-form-card,
.contact-form-card {
    text-align: center;
    padding: 3rem 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(60, 42, 33, 0.15);
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(60, 42, 33, 0.1);
}

.contact-form-card {
    max-width: 550px;
    text-align: left;
}

.auth-form-card h2,
.contact-form-card h2 {
    color: #3c2a21;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.auth-form-card form,
.contact-form-card form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3c2a21;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #ede7df;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fefefe;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3c2a21;
    box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Django form.as_p styling */
.auth-form-card form p,
.contact-form-card form p {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.auth-form-card form p label,
.contact-form-card form p label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3c2a21;
    font-weight: 500;
}

.auth-form-card form p input,
.contact-form-card form p input,
.auth-form-card form p textarea,
.contact-form-card form p textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #ede7df;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fefefe;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-form-card form p input:focus,
.contact-form-card form p input:focus,
.auth-form-card form p textarea:focus,
.contact-form-card form p textarea:focus {
    outline: none;
    border-color: #3c2a21;
    box-shadow: 0 0 0 3px rgba(60, 42, 33, 0.1);
}

/* Django help text styling */
.auth-form-card .helptext,
.contact-form-card .helptext {
    font-size: 0.85rem;
    color: #6b5d57;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Style lists in help text */
.auth-form-card form ul,
.contact-form-card form ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: #6b5d57;
    font-size: 0.85rem;
    line-height: 1.6;
}

.auth-form-card form ul li,
.contact-form-card form ul li {
    margin-bottom: 0.25rem;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 2rem;
    background: #3c2a21;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 42, 33, 0.2);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #2a1d17;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 42, 33, 0.3);
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.errorlist {
    color: #b91c1c;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

.auth-links {
    margin-top: 2rem;
    color: #6b5d57;
    text-align: center;
}

.auth-links a {
    color: #3c2a21;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-form-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-form-container {
        padding: 1rem;
    }
}
