/* =============================================
   AUTH PAGES - LOGIN E CADASTRO
   Design moderno e limpo
   ============================================= */

.auth-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.auth-layout {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background Animado */
.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}

.auth-bg .gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    top: -200px;
    right: -200px;
}

.auth-bg .gradient-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    bottom: -150px;
    left: -150px;
    animation-delay: 10s;
}

.auth-bg .gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}

/* Container Principal */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Form Box */
.auth-form-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.6s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Botão Google */
.btn-google {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-bottom: 24px;
}

.btn-google:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Error Message */
.error-message {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Toggle Text */
.toggle-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-text a {
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .auth-layout {
        padding: 20px 16px;
    }
    
    .auth-form-box {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .auth-form-box {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .btn-google,
    .btn-submit {
        padding: 12px 20px;
    }
}