/* Conteúdo Principal */
.main-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 2rem;
    position: relative;
}

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

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

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

.logo-display {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--verde) 0%, var(--roxo-claro) 100%);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 25px 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.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

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

/* Formulário de Login */
.login-form {
    margin-bottom: 2rem;
}

.code-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.code-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.code-input {
    width: 55px;
    height: 65px;
    border: 2px solid var(--roxo-bem-claro);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--branco);
    color: var(--roxo-escuro);
    transition: var(--transicao);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.code-input:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 4px rgba(58, 173, 110, 0.15);
    transform: translateY(-2px);
}

.code-input.filled {
    border-color: var(--verde);
    background: var(--roxo-bem-claro);
    color: var(--roxo-escuro);
}

.btn-entrar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
    color: var(--branco);
    border: none;
    border-radius: var(--raio);
    font-size: 1.125rem;
    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(-3px);
    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.5rem;
    border-top: 1px solid var(--roxo-bem-claro);
}

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

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

.recurso-item {
    padding: 0.75rem 0.5rem;
    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: 40px;
    height: 40px;
    background: var(--branco);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: var(--transicao);
}

.recurso-icon i {
    font-size: 1.125rem;
    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.875rem;
    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: 100px 1rem 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .logo-display {
        width: 70px;
        height: 70px;
    }
    
    .card-header h1 {
        font-size: 1.75rem;
    }
    
    .code-inputs {
        gap: 0.5rem;
    }
    
    .code-input {
        width: 50px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(2, 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;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .logo-display {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .card-header p {
        font-size: 1rem;
    }
    
    .code-inputs {
        gap: 0.4rem;
    }
    
    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.125rem;
    }
    
    .btn-entrar {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .recurso-item {
        padding: 0.75rem 0.25rem;
    }
    
    .recurso-icon {
        width: 40px;
        height: 40px;
    }
    
    .recurso-icon i {
        font-size: 1rem;
    }
    
    .recurso-item h3 {
        font-size: 0.75rem;
    }
}

/* Mensagens do formulário de código */
.mensagem {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

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

.mensagem i {
    font-size: 1.25rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.floating-shape {
    opacity: 0;
    animation: float 8s ease-in-out infinite, fadeIn 2s ease-out forwards;
}

.shape-1 { animation-delay: 0s, 0.2s; }
.shape-2 { animation-delay: 2s, 0.4s; }
.shape-3 { animation-delay: 4s, 0.6s; }
.shape-4 { animation-delay: 1s, 0.8s; }
.shape-5 { animation-delay: 3s, 1s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

