/* Auth Pages Styles (Login/Register) */

.auth-page {
    background-color: #f5f6f7;
    min-height: calc(100vh - 400px);
    /* Adjust based on header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f2;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 8px;
}

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

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(206, 28, 34, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px;
}

/* Error Alert */
.auth-error-alert {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.auth-error-alert ul {
    list-style: none;
    margin-top: 5px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--secondary);
    font-weight: 600;
}

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

.btn-auth {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-auth:hover {
    background: #b0181d;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-page {
        padding: 0;
        background-color: var(--white);
    }

    .auth-card {
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 40px 20px;
    }
}