/* Conteúdo Principal */
.hidden {
    display: none !important;
}

.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1.5rem 2rem;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

/* Card de Login */
.login-card {
    background: var(--branco);
    border-radius: var(--raio-grande);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--sombra-forte);
    border: 1px solid rgba(70, 11, 188, 0.05);
    width: 100%;
}

.card-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.logo-display {
    width: 45px;
    height: 45px;
    margin: 0 auto 0.375rem;
    background: linear-gradient(135deg, var(--verde) 0%, var(--roxo-claro) 100%);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 6px 20px rgba(58, 173, 110, 0.3);
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.card-header h1 {
    color: var(--roxo-escuro);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.5px;
}

.card-header p {
    color: var(--cinza-medio);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tabs de Navegação */
.tabs-container {
    display: flex;
    background: var(--roxo-bem-claro);
    border-radius: var(--raio);
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: none;
    background: transparent;
    color: var(--cinza-medio);
    font-weight: 600;
    border-radius: calc(var(--raio) - 4px);
    cursor: pointer;
    transition: var(--transicao);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.tab-btn.active {
    background: var(--branco);
    color: var(--roxo-escuro);
    box-shadow: 0 2px 8px rgba(70, 11, 188, 0.1);
}

.tab-btn:hover:not(.active) {
    color: var(--roxo-escuro);
}

/* Formulários */
.form-container {
    display: none;
    margin-bottom: 1.25rem;
}

.form-container.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--roxo-escuro);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.form-group label i {
    color: var(--verde);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid var(--roxo-bem-claro);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transicao);
    background: var(--branco);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(58, 173, 110, 0.15);
}

.form-group select {
    cursor: pointer;
}

/* Ações do Formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.875rem;
}

.esqueceu-senha {
    color: var(--verde);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicao);
}

.esqueceu-senha:hover {
    color: var(--verde-claro);
    text-decoration: underline;
}

.esqueceu-senha i {
    font-size: 0.75rem;
}

/* Botão de Entrada */
.btn-entrar {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
    color: var(--branco);
    border: none;
    border-radius: var(--raio);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(58, 173, 110, 0.3);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 173, 110, 0.4);
}

.btn-entrar:active {
    transform: translateY(-1px);
}

/* Seção de Recursos */
.recursos-section {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--roxo-bem-claro);
}

.recursos-section h2 {
    color: var(--roxo-escuro);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
}

.recurso-item {
    padding: 0.625rem 0.375rem;
    border-radius: 12px;
    background: var(--roxo-bem-claro);
    transition: var(--transicao);
}

.recurso-item:hover {
    transform: translateY(-3px);
    background: var(--roxo-claro);
}

.recurso-item:hover .recurso-icon {
    background: var(--branco);
}

.recurso-item:hover h3 {
    color: var(--branco);
}

.recurso-icon {
    width: 35px;
    height: 35px;
    background: var(--branco);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.375rem;
    transition: var(--transicao);
}

.recurso-icon i {
    font-size: 1rem;
    color: var(--roxo-escuro);
    transition: var(--transicao);
}

.recurso-item:hover .recurso-icon i {
    color: var(--roxo-claro);
}

.recurso-item h3 {
    color: var(--roxo-escuro);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
    transition: var(--transicao);
}

/* Elementos Decorativos */
.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(70, 11, 188, 0.03) 0%, rgba(58, 173, 110, 0.03) 100%);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.6;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 90px 1rem 1rem;
    }
    
    .login-wrapper {
        max-width: 100%;
    }
    
    .login-card {
        padding: 1.25rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 65px;
    }
    
    .brand-text h1 {
        font-size: 1.125rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .btn-voltar {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .main-content {
        padding: 85px 0.75rem 1rem;
    }
    
    .login-card {
        padding: 1rem 0.75rem;
    }
    
    .logo-display {
        width: 40px;
        height: 40px;
        padding: 5px;
    }
    
    .card-header h1 {
        font-size: 1.375rem;
    }
    
    .card-header p {
        font-size: 0.8rem;
    }
    
    .tabs-container {
        margin-bottom: 0.875rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .btn-entrar {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .recurso-item {
        padding: 0.5rem 0.25rem;
    }
    
    .recurso-icon {
        width: 30px;
        height: 30px;
    }
    
    .recurso-icon i {
        font-size: 0.875rem;
    }
    
    .recurso-item h3 {
        font-size: 0.65rem;
    }
}

/* Mensagens (recuperar / redefinir senha) */
.mensagem {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.45;
}

.mensagem.erro {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.mensagem.sucesso {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.mensagem i {
    margin-top: 2px;
}
