/* Auth Pages — Login / Signup Styles
 * Extracted from auth/login.html.
 * Already uses --pe-* tokens — dark mode flows automatically.
 */

.auth-section {
    background: var(--pe-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--pe-card-bg);
    border-radius: var(--pe-card-radius);
    border: 1px solid var(--pe-border);
    padding: 2.25rem 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--pe-shadow);
    animation: peFadeIn 0.4s ease;
}

.auth-tabs { margin-bottom: 1.5rem; }
.auth-tabs .nav-link {
    font-weight: 600;
    color: var(--pe-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
}
.auth-tabs .nav-link.active {
    color: var(--pe-text);
    border-bottom-color: var(--pe-text);
    background: transparent;
}
.auth-tabs .nav-link:hover:not(.active) {
    color: var(--pe-text-muted);
    border-bottom-color: var(--pe-border);
}

.form-label {
    font-weight: 500;
    color: var(--pe-text-muted);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.invalid-feedback { font-size: 0.875rem; color: var(--pe-danger); margin-top: 0.25rem; }

.btn-auth {
    background: #111827;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--pe-btn-radius);
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1.5rem;
    transition: background 0.15s ease;
}
.btn-auth:hover { background: #000000; }
.btn-auth:active { transform: translateY(1px); }

.discord-option { margin-top: 1.5rem; text-align: center; position: relative; }
.discord-option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pe-border);
    z-index: 1;
}
.discord-option span {
    position: relative;
    z-index: 2;
    background: var(--pe-card-bg);
    padding: 0 1rem;
    color: var(--pe-text-light);
    font-size: 0.8rem;
}

/* Note: .discord-btn is also defined in landing.css for the landing page.
   This version is scoped to the auth page via .auth-card context. */
.auth-card .discord-btn {
    background: var(--pe-card-bg);
    color: var(--pe-text-muted);
    border: 1px solid var(--pe-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--pe-btn-radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    gap: 0.5rem;
}
.auth-card .discord-btn:hover {
    background: var(--pe-bg-subtle);
    border-color: var(--pe-text-light);
    color: var(--pe-text);
}

.discord-logo { margin-right: 0.5rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
