* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    overflow: hidden;   
    /* Fundo base azul que previne qualquer área branca nos limites extremos */
    background: linear-gradient(180deg, #0b608a 0%, #ffffff 15%, #ffffff 85%, #0088a9 100%);
}

/* CONTAINER PRINCIPAL */
.login-container {
    display: flex;
    align-items: center;
    height: 100vh;                 
    width: 100%;
    overflow: hidden;               
    position: relative;
}

/* ==========================================
   ONDAS FLUTUANTES DE FUNDO (SEM ESPAÇO BRANCO)
========================================== */
.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.wave {
    position: absolute;
    width: 100%;
    will-change: transform;
}

.wave-top {
    top: -5px; /* Leve sobreposição para eliminar o espaço em branco no topo */
    height: 25vh;
    min-height: 180px;
    transform-origin: top center;
}

.wave-bottom {
    bottom: -5px; /* Leve sobreposição para eliminar o espaço em branco na base */
    height: 25vh;
    min-height: 180px;
    transform-origin: bottom center;
}

/* Garante que o SVG preencha toda a largura sem deixar brechas */
.wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave1 {
    animation: waveFloat1 12s ease-in-out infinite alternate;
}

.wave2 {
    animation: waveFloat2 16s ease-in-out infinite alternate;
}

/* Sem scaleY/rotate: só translateY, para não esticar o bitmap da camada
   composta via GPU (isso é o que causava o borrão nas ondas) */
@keyframes waveFloat1 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(8px); }
}

@keyframes waveFloat2 {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(-8px); }
}

/* ==========================================
   PATINHAS MULTICOLORIDAS E FLUIDAS
========================================== */
.paws-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.animated-paw {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity, filter;
    animation: pawSmoothFade 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.paw-pos-1 { top: 8%; right: 8%; font-size: 4.2rem; animation-delay: 0s; color: #f59e0b; filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6)); }
.paw-pos-2 { top: 22%; right: 30%; font-size: 2.8rem; animation-delay: 2s; color: #8b5cf6; filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6)); }
.paw-pos-3 { bottom: 10%; right: 12%; font-size: 4.8rem; animation-delay: 4s; color: #06b6d4; filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6)); }
.paw-pos-4 { bottom: 18%; right: 42%; font-size: 3.2rem; animation-delay: 6s; color: #ec4899; filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.6)); }
.paw-pos-5 { top: 12%; left: 34%; font-size: 3rem; animation-delay: 1.5s; color: #10b981; filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6)); }
.paw-pos-6 { bottom: 8%; left: 28%; font-size: 2.6rem; animation-delay: 3.5s; color: #3b82f6; filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6)); }
.paw-pos-7 { top: 48%; left: 18%; font-size: 3.5rem; animation-delay: 5s; color: #f97316; filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6)); }

/* Sem scale(): só translateY/rotate/opacity, para não esticar o bitmap da
   camada composta via GPU (mesmo motivo do ajuste nas ondas) */
@keyframes pawSmoothFade {
    0% { opacity: 0; transform: translateY(20px) rotate(-10deg); }
    30% { opacity: 0.85; transform: translateY(-5px) rotate(5deg); }
    60% { opacity: 0.85; transform: translateY(-15px) rotate(-5deg); }
    85% { opacity: 0.2; transform: translateY(-25px) rotate(8deg); }
    100% { opacity: 0; transform: translateY(-35px) rotate(15deg); }
}

/* ==========================================
   LADO ESQUERDO - CARD DE LOGIN (SOMBRA PRETA SUTIL)
========================================== */
.login-left {
    flex: 0 0 420px;
    background-color: #ffffff;
    border-radius: 24px;
    border: none;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 3;
    margin-left: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-left:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 28px 50px rgba(0, 0, 0, 0.35),
        0 12px 22px rgba(0, 0, 0, 0.2);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    font-size: 1.8rem;
    color: #0b2545;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-card p.subtitle {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.icon-left {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.input-wrapper i.icon-right {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    border-color: #0088a9;
    box-shadow: 0 0 8px rgba(0, 136, 169, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #0b608a 0%, #0088a9 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

/* LADO DIREITO - PAINEL DA LOGO */
.login-right {
    flex: 1;
    color: #0b2545;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-content {
    max-width: 520px;
    z-index: 2;
}

.brand-content h3 {
    font-size: clamp(1.2rem, 3vh, 1.75rem);
    font-weight: 700;
    margin-bottom: clamp(0.4rem, 1vh, 0.8rem);
}

.brand-content h3 span {
    color: #0267ff;
}

.brand-content p {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: clamp(1rem, 3vh, 2.5rem);
    opacity: 0.95;
}

/* ==========================================
   CARDS DE RECURSOS - SOMBRA E EFEITO HOVER
========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.feature-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: clamp(0.5rem, 1.5vh, 1rem) 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 18px 30px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(0, 136, 169, 0.3);
}

.feature-card i {
    font-size: 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0b608a 0%, #0088a9 100%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card span {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

.brand-logo-img {
    width: clamp(350px, 28vh, 520px);
    max-width: 90%;
    height: auto;
    margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.15));
    will-change: transform;
    animation: floatLogo 4s ease-in-out infinite;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 1200px) and (min-width: 801px) {
    .login-container {
        align-items: stretch;
    }

    .login-left {
        margin-left: 0;
        border-radius: 0 24px 24px 0;
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.3);
    }
}



/* ============ RESPONSIVO — CELULAR ============ */
@media (max-width: 600px) {
    body, html {
        height: 100%;
        overflow-x: hidden; /* Evita qualquer scroll para os lados */
    }

    .login-container {
        padding: 1.5rem 1rem;
        justify-content: center; /* Centraliza o card verticalmente */
        align-items: center;    /* Centraliza o card horizontalmente */
        height: 100vh;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .login-left {
        margin-left: 0;
        flex: none;
        width: 100%;
        max-width: 100%;        /* Ocupa a largura disponível sem estourar */
        border-radius: 18px;
        padding: 1.75rem 1.25rem; /* Padding reduzido para caber os inputs com folga */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .login-card {
        width: 100%;
        max-width: 100%;
    }

    /* Esconde o painel da direita no mobile */
    .login-right,
    .bg-paw {
        display: none !important;
    }
}