/* ==========================================
   REGISTRATION AND AUTHENTICATION PAGES
========================================== */

/* Hide Django's default help text */
.helptext, 
small.form-text,
.form-text {
    display: none !important;
}

/* Authentication Pages Styling */
.auth-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background-color: var(--color-bg-primary);
}

.auth-container {
    max-width: 700px;
    width: 90%;
    padding: 2rem;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-small);
    border: 1px solid var(--color-border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--color-text-heading);
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

.auth-form form {
    display: flex;
    flex-direction: column;
}

.auth-form p {
    margin-bottom: 1.2rem;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    font-size: var(--font-size-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.auth-form input:focus {
    border: 2px solid var(--color-border-interactive);
    outline: none;
}

.auth-form button {
    background-color: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--radius-small);
    font-size: var(--font-size-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    margin-top: 1rem;
}

.auth-form button:hover {
    background-color: var(--color-button-primary-hover-bg);
}

/* Styling for general .button elements within .auth-section, e.g., secondary actions or links styled as buttons */
.auth-section .button {
	display: inline-block;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border-interactive);
    border-radius: var(--radius-small);
    background-color: transparent;
    color: var(--color-text-accent);
    font-size: var(--font-size-base);
    font-weight: var(--weight-medium);
    cursor: pointer;
    text-decoration: none;
}

.auth-section .button:hover {
    background-color: var(--color-interactive-hover-bg);
    color: var(--color-link-hover);
    border-color: var(--color-accent-primary);
}

.auth-form .help-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

.auth-form .disabled-email {
	color: var(--color-text-secondary) !important;
}

.auth-form .errorlist {
    color: var(--status-error);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--status-error);
    border-radius: var(--radius-small);
    font-size: var(--font-size-sm);
    margin: 0.25rem 0 0.5rem;
    padding: 1rem;
    list-style-position: inside;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: var(--weight-medium);
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--color-link-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-section {
        padding: 4rem 1rem;
    }
    .auth-container {
        width: 100%;
        padding: 1rem;
    }
    .auth-header h2 {
        font-size: var(--font-size-xl);
    }
}