:root {
    --primary: #B0125F; /* Rosa profundo da marca */
    --primary-light: #E8308A; /* Rosa vivo */
    --primary-hover: #7A0F52; /* Hover ameixa */
    --plum: #3D0A2C; /* Ameixa quase preta */
    --bg-color: #FFF6FA; /* Branco rosado */
    --blush: #FFE3F0; /* Rosa bem claro */
    --borda: #F5CFE1; /* Bordas rosadas */
    --text-main: #3D1530; /* Texto principal */
    --text-muted: #7D5470; /* Textos secundários */
    --danger-red: #C81E3A; /* Alertas */
    --success: #0F8A5F;
    --titulo: 'Fraunces', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================
   FUNDOS E CONTAINERS
   ========================================== */
html, body {
    overscroll-behavior: none;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    width: 100%;
    color: var(--text-main);
}

.desktop-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.desktop-left-panel {
    display: none; /* Escondido no celular */
}

/* No celular o rosa vem do fundo do formulário */
.login-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background:
        radial-gradient(460px 340px at 100% 0%, rgba(232, 48, 138, 0.34), transparent 70%),
        radial-gradient(420px 340px at 0% 100%, rgba(232, 48, 138, 0.24), transparent 70%),
        var(--bg-color);
}

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

@media (min-width: 992px) {
    .desktop-left-panel {
        display: flex;
        flex: 1.2;
        background: linear-gradient(150deg, var(--primary-hover) 0%, var(--primary) 40%, #DB2777 75%, #F04C9B 100%);
        position: relative;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: white;
        text-align: center;
        padding: 40px;
    }

    .login-right-panel {
        padding: 40px;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(14px);
        border: 1px solid #FFFFFF;
        border-radius: 28px;
        padding: 12px 24px;
        box-shadow: 0 30px 60px -24px rgba(176, 18, 95, 0.3);
    }
}

/* ==========================================
   PAINEL ESQUERDO: A ÍRIS ANIMADA
   ========================================== */
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: auroraMove 14s ease-in-out infinite alternate;
}
.aurora-1 { width: 460px; height: 460px; top: -140px; right: -120px; background: rgba(255, 92, 168, 0.55); }
.aurora-2 { width: 380px; height: 380px; bottom: -130px; left: -100px; background: rgba(255, 170, 120, 0.3); animation-delay: -6s; }

.iris-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    margin-bottom: 32px;
    z-index: 2;
}

.iris-icon {
    width: 120px;
    height: 120px;
    color: #FFFFFF;
    animation: girarLento 26s linear infinite;
    z-index: 3;
    filter: drop-shadow(0 0 22px rgba(255, 170, 215, 0.9));
}

.pulse-ring-1, .pulse-ring-2, .pulse-ring-3 {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    z-index: 1;
}
.pulse-ring-1 { border: 2px solid rgba(255, 200, 228, 0.75); animation: irisPulse 3s cubic-bezier(0, 0, 0.2, 1) infinite; }
.pulse-ring-2 { border: 2px solid rgba(255, 140, 195, 0.55); animation: irisPulse 3s cubic-bezier(0, 0, 0.2, 1) infinite 1s; }
.pulse-ring-3 { border: 1px dashed rgba(255, 255, 255, 0.35); animation: irisPulse 4.5s linear infinite; }

.desktop-left-panel h1 {
    z-index: 2;
    font-family: var(--titulo);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.5px;
    max-width: 560px;
    margin-bottom: 14px;
}
.desktop-left-panel h1 em {
    font-family: var(--titulo);
    color: #FFC4E1;
}

.panel-sub {
    z-index: 2;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 400px;
    line-height: 1.6;
}

.panel-chips {
    z-index: 2;
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.panel-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.vs-integra-footer {
    position: absolute;
    bottom: 26px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.vs-integra-footer strong { font-weight: 700; }

@keyframes girarLento { to { transform: rotate(360deg); } }

@keyframes irisPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.2); opacity: 0; }
}

@keyframes auroraMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 30px) scale(1.15); }
}

/* ==========================================
   TOPO: LOGO CENTRALIZADA
   ========================================== */
.header-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 22px;
}
/* Faixa em degradê (assinatura da marca), logo abaixo da logo. */
.header-visual::after {
    content: '';
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #FFB3D6, var(--primary-light), var(--primary-hover));
}

.logo-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--primary-hover), var(--primary-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px -8px rgba(176, 18, 95, 0.55);
    color: white;
}
.logo-box svg { width: 50px; height: 50px; }

/* ==========================================
   TEXTOS DE BOAS VINDAS
   ========================================== */
.brand-text {
    padding: 0 20px;
    text-align: center;
}

.brand-text h2 {
    font-family: var(--titulo);
    color: var(--primary);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.brand-text sup { font-size: 0.45em; font-family: inherit; }

.brand-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}
.brand-text .brand-forte { font-weight: 700; margin-bottom: 2px; }

/* ==========================================
   ÁREA DE AÇÕES E ANIMAÇÕES
   ========================================== */
.action-area {
    display: flex;
    flex-direction: column;
    padding: 26px 20px 12px;
}

.step {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.step.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.step-centro { text-align: center; }
.step-titulo { color: var(--text-main); font-weight: 800; font-size: 18px; }
.step-sub { font-size: 13px; color: var(--text-muted); }

.rotulo-codigo {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

/* ==========================================
   INPUTS
   ========================================== */
input[type="tel"], input[type="text"], select {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid var(--borda);
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: all 0.25s;
    font-weight: 500;
}

input::placeholder {
    color: #A87F97;
}

input:focus, select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(232, 48, 138, 0.14);
}

input.input-codigo {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================
   BOTÕES
   ========================================== */
.btn-colored {
    background: linear-gradient(135deg, #A00F56 0%, #DB2777 100%);
    color: white;
    font-weight: 700;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
    width: 100%;
    box-shadow: 0 12px 24px -8px rgba(176, 18, 95, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-colored:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -8px rgba(176, 18, 95, 0.65);
}

.btn-colored:active {
    transform: scale(0.98);
}

.btn-colored:disabled {
    background: #E9C8D8;
    color: #7D5470;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-text-only {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-text-only:hover {
    color: var(--primary);
}

/* ==========================================
   CÂMERA E MENSAGENS
   ========================================== */
.camera-wrapper {
    width: 200px;
    height: 200px;
    margin: 6px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    box-shadow: 0 0 0 8px var(--blush), 0 14px 30px rgba(176, 18, 95, 0.3);
    background: var(--plum);
}

.camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.message {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    min-height: 18px;
}
.message.erro { color: var(--danger-red); }
.message.ok { color: var(--success); }
.message.info { color: var(--text-muted); }

/* ==========================================
   RODAPÉ
   ========================================== */
.app-footer {
    text-align: center;
    padding: 12px 20px 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.link-rodape, .link-inline {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.link-inline { color: var(--primary); font-weight: 700; }
.separador { opacity: 0.5; margin: 0 4px; }

.rodape-ajuda {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--borda);
}
.rodape-ajuda a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    font-size: 12.5px;
    text-decoration: none;
}
.rodape-ajuda p { margin-top: 8px; font-size: 10.5px; }

/* ==========================================
   MODAIS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 10, 44, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(6px);
}
.modal.aberto { display: flex; }
.modal-topo { z-index: 100000; } /* Termos abrem por cima do cadastro */

.modal-content {
    background: white;
    padding: 28px;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 50px rgba(61, 10, 44, 0.35);
}
.modal-icone { font-size: 36px; color: var(--primary-light); margin-bottom: 8px; }
.modal-content h2 { font-family: var(--titulo); color: var(--primary); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

#lista-empresas-modal { display: flex; flex-direction: column; gap: 10px; }

#form-solicitar-cadastro { text-align: left; }

.foto-cadastro { text-align: center; margin-bottom: 16px; }
#box-foto-cadastro {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    border: 2px dashed var(--primary-light);
    cursor: pointer;
}
#placeholder-foto-cadastro { font-size: 26px; color: var(--primary-light); }
#preview-foto-cadastro, #video-cadastro { width: 100%; height: 100%; object-fit: cover; display: none; }
#video-cadastro { transform: scaleX(-1); }
#btn-tirar-foto-cad {
    display: none;
    margin: 10px auto 0;
    background: var(--primary);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
#lbl-foto-texto {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}
.foto-aviso { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }

.campo { display: block; margin-bottom: 14px; }
.campo span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.campo input, .campo select { padding: 13px 14px; border-radius: 12px; font-size: 14px; }

.aceite-lgpd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: var(--bg-color);
    border: 1px solid var(--borda);
    border-radius: 12px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.aceite-lgpd input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); }

.modal-botoes { display: flex; gap: 10px; margin-top: 18px; }
.modal-botoes button { flex: 1; padding: 13px; font-size: 14px; }

.modal-texto {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(61, 10, 44, 0.35);
}
.modal-texto-cabecalho { padding: 22px 24px 16px; border-bottom: 1px solid var(--borda); }
.modal-texto-cabecalho h2 { color: var(--primary); font-size: 18px; margin-bottom: 4px; }
.modal-texto-cabecalho p { font-size: 11.5px; color: var(--text-muted); }
.modal-texto-corpo { padding: 20px 24px; overflow-y: auto; font-size: 13px; line-height: 1.65; }
.modal-texto-corpo p { margin-bottom: 14px; }
.modal-texto-corpo p:last-child { margin-bottom: 0; }
.modal-texto-rodape { padding: 14px 24px; border-top: 1px solid var(--borda); display: flex; justify-content: flex-end; }
.modal-texto-rodape .btn-colored { width: auto; padding: 10px 26px; }

/* ==========================================
   BANNER DE COOKIES
   ========================================== */
#cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: var(--plum);
    color: #fff;
    padding: 14px 18px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    line-height: 1.5;
}
#cookie-banner.aberto { display: flex; }
#cookie-banner > span { max-width: 620px; }
#cookie-banner i { margin-right: 6px; color: #FFB3D6; }
#cookie-banner .link-inline { color: #FFB3D6; }
.btn-aceitar {
    background: var(--primary-light);
    color: #3D0A2C;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .aurora, .iris-icon, .pulse-ring-1, .pulse-ring-2, .pulse-ring-3 { animation: none; }
    .pulse-ring-1, .pulse-ring-2, .pulse-ring-3 { display: none; }
}
