/* Ícones e elementos visuais adicionais para o login */

/* Ícone de nutrição customizado */
.nutrition-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.nutrition-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: rotate 3s linear infinite;
}

.nutrition-icon i {
    position: relative;
    z-index: 2;
}

/* Padrão de fundo sutil para o painel */
.login-info-panel::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 40 L90 40 L68 60 L78 90 L50 72 L22 90 L32 60 L10 40 L40 40 Z" fill="rgba(104,122,228,0.1)"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

/* Elementos decorativos flutuantes */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Efeito de brilho no formulário */
.login-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(104, 122, 228, 0.1), transparent);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Remover o efeito de hover */
/* .login-form:hover::before {
    opacity: 1;
} */

/* Indicador de força da senha */
.password-strength {
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.3s ease;
    width: 0;
}

.password-strength.weak::before { width: 33%; }
.password-strength.medium::before { width: 66%; }
.password-strength.strong::before { width: 100%; }

/* Animação de carregamento */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados do botão */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading .loading-spinner {
    display: inline-block;
}

/* Efeito de digitação no placeholder */
.typing-placeholder {
    border-right: 2px solid #687ae4;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #687ae4; }
}

/* Melhorias para acessibilidade */
.input-group input:focus {
    outline: 2px solid #687ae4;
    outline-offset: 2px;
}

.btn-login:focus {
    outline: 2px solid #687ae4;
    outline-offset: 2px;
}

/* Modo escuro (preparação para futuro) */
@media (prefers-color-scheme: dark) {
    .login-content-box {
        background: rgba(30, 41, 59, 0.95);
        color: #f8fafc;
    }
    
    .login-container {
        background: #1e293b;
    }
    
    .input-group input {
        background: rgba(15, 23, 42, 0.8);
        color: #f8fafc;
        border-color: #475569;
    }
    
    .login-form h2 {
        color: #f8fafc;
    }
}