#main {
    min-width: 100%;
    min-height: 100svh;
    background: var(--cor1);
}

#left-side {
    background: #fff;
    width: 100%;
    max-width: 660px;
}

#right-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#auth-container {
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
}

#form-login, #form-registro, #form-recuperacao, #recuperacao-container {
    display: none;

    &.ativo {
        display: flex;
    }
}

#mensagem:empty, #form-mensagem:empty {
    display: none;
}

#logo {
    width: 250px;
}

#titulo {
    color: var(--cor1);
    /*font-family: 'Balneario Script', 'sans-serif';*/
}

/* ===== RUMO Animation ===== */
#logo-animado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#rumo-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.letra {
    display: inline-block;
    font-size: 10rem;
    font-weight: 700;
    font-style: italic;
    color: var(--cor7);
    opacity: 0;
    filter: blur(20px);
    transform: translateY(80px) scale(0.5);
    animation: letraEntrada 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    /* text-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3); */
    position: relative;
    letter-spacing: -2px;
    line-height: 1em;
}

/* Glow pulse effect after animation */
.letra::after {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    filter: blur(15px);
    animation: glowPulse 2s ease-in-out infinite;
    animation-delay: 1.8s;
}

.letra-r, .letra-u {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -14px;
}

.letra-m, .letra-o {
    font-family: 'Balneario Script', cursive;
    margin-left: -4px;
}

/* Staggered delays - 300ms each */
.letra-r { animation-delay: 0s; }
.letra-u { animation-delay: 0.3s; }
.letra-m { animation-delay: 0.6s; }
.letra-o { animation-delay: 0.9s; }

@keyframes letraEntrada {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(80px) scale(0.5);
    }
    60% {
        opacity: 1;
        filter: blur(5px);
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* Subtitulo */
#subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1em;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--cor7);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: subtituloEntrada 0.8s ease-out forwards;
    animation-delay: 1.5s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/*#subtitulo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: linhaExpande 0.6s ease-out forwards;
    animation-delay: 1.8s;
}*/

@keyframes subtituloEntrada {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes linhaExpande {
    0% {
        transform: translateX(-50%) scaleX(0);
    }
    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

/* ===== Elementos Decorativos Animados ===== */

.deco-flor-verde,
.deco-retangulo-verde,
.deco-nuvem,
.deco-pensamento,
.deco-flor-laranja,
.deco-retangulo-azul {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Flor verde - canto superior direito, metade visível, girando */
.deco-flor-verde {
    width: 750px;
    bottom: -331px;
    right: -280px;
    animation: girarLento 25s linear infinite;
}

/* Retângulo verde - canto inferior esquerdo, metade visível, girando */
.deco-retangulo-verde {
    width: 550px;
    top: -236px;
    left: -214px;
    animation: girarLento 30s linear infinite reverse;
}

/* Nuvem - aparece ocasionalmente em locais aleatórios */
.deco-nuvem {
    width: 120px;
    opacity: 0;
    animation: aparecerSumir 12s ease-in-out infinite;
    top: 20%;
    right: 15%;
}

/* Pensamento - aparece ocasionalmente em locais aleatórios */
.deco-pensamento {
    width: 350px;
    opacity: 0;
    animation: aparecerSumir 15s ease-in-out infinite 6s;
    bottom: 7%;
    right: 60%;
}

/* Flor laranja - pequena, em lugares vazios */
.deco-flor-laranja {
    width: 45px;
    top: 65%;
    right: 12%;
    opacity: 0;
    animation: aparecerSumirPequeno 18s ease-in-out infinite 3s;
}

/* Retângulo azul - pequeno, em lugares vazios */
.deco-retangulo-azul {
    width: 40px;
    top: 18%;
    right: 65%;
    opacity: 0;
    animation: aparecerSumirPequeno 20s ease-in-out infinite 9s;
}

/* Animação de rotação lenta */
@keyframes girarLento {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animação de aparecer e sumir lentamente */
@keyframes aparecerSumir {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    15%, 85% {
        opacity: 0.7;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-5px);
    }
}

/* Animação para elementos pequenos */
@keyframes aparecerSumirPequeno {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    20%, 80% {
        opacity: 0.6;
        transform: scale(1) rotate(15deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-10deg);
    }
}
