/* =====================================================
   AUTH PAGES — Login, recuperar e redefinir senha
   ===================================================== */

:root {
    --auth-primary: #667eea;
    --auth-primary-dark: #764ba2;
    --auth-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.auth-page {
    font-family: 'Inter', sans-serif;
    background: var(--auth-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    margin: 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: authMoveGrid 30s linear infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    animation: authPulse 10s ease-in-out infinite;
}

@keyframes authMoveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

@keyframes authPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: authFloatOrb 20s ease-in-out infinite;
    pointer-events: none;
}

.auth-orb-1 { width: 300px; height: 300px; background: #667eea; top: 10%; left: 10%; }
.auth-orb-2 { width: 250px; height: 250px; background: #f093fb; bottom: 10%; right: 10%; animation-delay: -7s; }
.auth-orb-3 { width: 200px; height: 200px; background: #764ba2; top: 50%; right: 20%; animation-delay: -14s; }

@keyframes authFloatOrb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.auth-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: authCardIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo img {
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
    animation: authLogoFloat 3s ease-in-out infinite;
}

@keyframes authLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.auth-page .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
}

.auth-page .form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.auth-page .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.auth-page .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    color: #64748b;
}

.auth-page .input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.auth-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.25s;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    color: white;
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    animation: authAlertIn 0.35s ease both;
}

@keyframes authAlertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }
}
