/* Authentication Pages Styles */
/* Shared styles for login, register, and authentication-related pages */

/* Default auth container */
.auth-container {
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* Register page layout */
.auth-container.register {
    max-width: 450px;
    margin: 4rem auto;
}

/* Login page layout */
.auth-container.login {
    max-width: 400px;
    margin: 0 auto;
}

/* Shared auth components */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--color-muted);
    font-size: 0.95rem;
}

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

.auth-form.login-form {
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--color-input);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: var(--color-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

/* Buttons */
.auth-button {
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.05s;
    margin-top: 0.5rem;
    color: #ffffff;
}

.auth-button:active {
    transform: translateY(1px);
}

/* Login button - primary */
.auth-button.login {
    background: var(--color-primary);
}

.auth-button.login:hover {
    background: var(--color-primary-dark);
}

/* Register button - success */
.auth-button.register {
    background: var(--color-success);
}

.auth-button.register:hover {
    background: var(--color-success-dark);
}

/* Links and hints */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

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

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

/* Error and info boxes */
.error-messages {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.error-messages ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--alert-error-text);
    font-size: 0.9rem;
}

.error-messages ul li {
    margin-bottom: 0.25rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.info-box,
.status-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.info-box .icon {
    color: #0284c7;
    margin-right: 0.5rem;
}

/* Hide Django form errors since we'll style them */
.errorlist {
    display: none;
}

/* Login page layout - messages appear above centered form */
.main-content:has(.auth-wrapper) {
    display: flex;
    flex-direction: column;
}

.main-content:has(.auth-wrapper) .messages {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

/* Pending Approval Page Styles */
.pending-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}

.pending-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.pending-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.pending-message {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pending-details {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.pending-details h3 {
    color: #92400e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pending-details ul {
    color: #92400e;
    margin: 0;
    padding-left: 1.5rem;
}

.pending-details li {
    margin-bottom: 0.5rem;
}

.pending-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Neutral/secondary */
.btn-logout {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid var(--color-border);
}

.btn-logout:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

/* Primary */
.btn-contact {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-contact:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

/* Status info duplicate normalized above as .status-info */

/* Responsive */
@media (max-width: 640px) {
    .pending-container {
        margin: 2rem auto;
        padding: 2rem;
    }

    .pending-title {
        font-size: 1.5rem;
    }

    .pending-actions {
        flex-direction: column;
    }

    .auth-register .auth-container {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}