/* ========== auth PAGES (auth / SIGNUP / LOGOUT) ========== */

.auth-section {
    background: linear-gradient(135deg, var(--bg-light), #eef2ff);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.auth-card h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-subtext {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-errors {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    text-align: left;
}

ul.auth-errors {
    list-style: none;
}

.auth-errors p {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.auth-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-errors li {
    margin-top: 0.25rem;
}

/* Form */

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

.auth-form p {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.auth-form label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.auth-form input {
    padding: 0.7rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form input:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.auth-form ul {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    color: #dc2626;
}

.auth-form li {
    margin-top: 0.25rem;
}

/* Buttons & links */

.auth-form button,
.auth-btn {
    margin-top: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
}

.auth-form button:hover,
.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.35);
    opacity: 0.95;
}

.auth-form button:active,
.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25);
}


.auth-alt {
    margin-top: 1.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .auth-form button:hover,
    .auth-btn:hover,
    .auth-form button:active,
    .auth-btn:active {
        transform: none;
    }
}
