/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0d0821;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.hidden { display: none !important; }

/* ===================================================
   CARROSSEL DE FUNDO
=================================================== */
.carousel-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    pointer-events: none;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 8, 33, 0.82) 0%,
        rgba(44, 18, 120, 0.75) 40%,
        rgba(13, 8, 33, 0.88) 100%
    );
    backdrop-filter: blur(1px);
}

.carousel-track {
    display: flex;
    gap: 16px;
    animation: scroll-fwd 22s linear infinite;
    will-change: transform;
}

.carousel-track.track-inverso {
    animation: scroll-rev 28s linear infinite;
}

.carousel-track img {
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 0.55;
    flex-shrink: 0;
}

@keyframes scroll-fwd {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-rev {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===================================================
   LAYOUT DE DUAS COLUNAS
=================================================== */
.page-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 100vh;
    padding: 48px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===================================================
   COLUNA ESQUERDA — HERO / PROPOSTA DE VALOR
=================================================== */
.hero-col {
    flex: 1;
    max-width: 500px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 28px;
    padding: 6px 14px;
    background: rgba(196, 181, 253, 0.1);
    border: 1px solid rgba(196, 181, 253, 0.25);
    border-radius: 50px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 36px;
    max-width: 420px;
}

/* Diferenciais */
.diferenciais {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diferencial-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}

.diferencial-item:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}

.diferencial-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.diferencial-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diferencial-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.diferencial-item span {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ===================================================
   COLUNA DIREITA — CARD DE FORMULÁRIO
=================================================== */
.form-col {
    flex-shrink: 0;
    width: 100%;
    max-width: 380px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 36px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-card.card-erro {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(239, 68, 68, 0.12);
}

.card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: -12px;
}

/* ===================================================
   MENU MOBILE COMPACTO
=================================================== */
#mobile-menu {
    display: none; /* Escondido por padrão no desktop */
}

.mobile-menu-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.mobile-menu-buttons button {
    margin-bottom: 0;
    padding: 14px 10px;
    font-size: 14px;
}

/* ===================================================
   CAMPOS DO FORMULÁRIO
=================================================== */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field-group label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 4px;
}

.field-input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.field-input:focus {
    border-color: rgba(167, 139, 250, 0.7);
    background: rgba(167, 139, 250, 0.08);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* ===================================================
   MENSAGENS DE ERRO / SUCESSO
=================================================== */
.msg-erro {
    min-height: 18px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
    color: transparent;
    transition: color 0.2s;
}

.msg-erro.visivel {
    color: #f87171;
}

.msg-erro.sucesso.visivel {
    color: #34d399;
}

/* ===================================================
   BOTÕES
=================================================== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 13px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: rgba(167, 139, 250, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    padding: 6px 0 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.btn-link:hover { color: #c4b5fd; }

/* Divisor */
.card-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.card-divider::before,
.card-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.card-divider span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* ===================================================
   RESPONSIVO
=================================================== */

/* Tablet: esconde a coluna hero, centraliza o form */
@media (max-width: 860px) {
    .page-layout {
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 20px 48px;
        gap: 32px;
    }

    .hero-col {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .diferenciais {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .form-col {
        max-width: 420px;
        width: 100%;
    }

    /* LÓGICA DE EXIBIÇÃO MOBILE: Se não clicou para expandir, mostra o menu compacto */
    body:not(.form-opened) #mobile-menu {
        display: block;
    }

    /* Esconde os formulários padrões no mobile até serem acionados pelo botão */
    body:not(.form-opened) #box-login,
    body:not(.form-opened) #box-cadastro,
    body:not(.form-opened) #box-recuperar {
        display: none !important;
    }
}

/* Mobile: uma coluna, diferenciais em coluna única */
@media (max-width: 520px) {
    .hero-title {
        font-size: 36px;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
    }

    .diferenciais {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
        margin-top: 135px;
    }

    .brand-mark
    {
        margin: 20px 50px;
        font-size: 11px;
        position: absolute;
        top: 0;
        left: 0;
        margin-top: 20px;
        right: 0;
        flex-direction: column;
    }

    .page-layout {
        flex-direction: column-reverse;
        justify-content: flex-start;
        padding: 32px 20px 48px;
        gap: 32px;
    }

    .mobile-menu-buttons button {
        margin-bottom: 0;
        padding: 5px 10px;
    }

    .mobile-menu-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 3px;
    }

    .card-title {
        font-family: 'Cormorant Garamond', serif;
        font-size: 32px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
    }





















}