/* ============================================================
   entrada.css — Tela de entrada dos produtos Fortyus.
   Mesmo desenho das telas de entrada novas do ERP (entrada-4c.css):
   dourado escovado sobre grafite, marca a esquerda e cartao a direita.

   NASCE FECHADA: tudo escopado em `body.fy-entrada`. Sem essa classe
   no body o arquivo e INERTE (nao afeta nenhuma outra tela do portal).
   ============================================================ */

body.fy-entrada {
    /* --- dourado da marca --- */
    --fe-g1: #F3DCA0;   /* brilho */
    --fe-g2: #D4A94F;   /* base   */
    --fe-g3: #A87C2E;   /* sombra */
    --fe-gold-grad: linear-gradient(135deg, #F3DCA0 0%, #D4A94F 46%, #A87C2E 100%);

    /* --- grafite --- */
    --fe-ink0: #08090D;
    --fe-ink1: #0F1117;
    --fe-ink2: #161923;
    --fe-ink3: #1E222E;

    /* --- texto (contraste alto: publico de idade) --- */
    --fe-txt:  #F5F6F8;
    --fe-txt2: #BFC5D1;
    --fe-txt3: #8B93A3;

    --fe-line:  rgba(212, 169, 79, .22);
    --fe-line2: rgba(255, 255, 255, .10);

    position: relative;
    min-height: 100vh;
    margin: 0;
    background: var(--fe-ink0);
    color: var(--fe-txt);
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.fy-entrada *,
body.fy-entrada *::before,
body.fy-entrada *::after { box-sizing: border-box; }

/* o portal pode envolver a pagina num container com respiro proprio;
   na entrada a arte vai de borda a borda */
body.fy-entrada .app { padding: 0; }

/* =====================================================================
   FUNDO — trelica diagonal dourada + brilhos + vinheta
   ===================================================================== */
body.fy-entrada .fe-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(1000px 640px at 14% 16%, rgba(212, 169, 79, .13), transparent 62%),
        radial-gradient(860px 560px at 88% 84%, rgba(212, 169, 79, .08), transparent 64%),
        repeating-linear-gradient(60deg,  rgba(212, 169, 79, .05) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-60deg, rgba(212, 169, 79, .05) 0 1px, transparent 1px 28px),
        linear-gradient(165deg, #151824 0%, #0A0B10 58%, #0D0F16 100%);
}
body.fy-entrada .fe-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, .55) 100%);
}

/* =====================================================================
   ESTRUTURA
   ===================================================================== */
body.fy-entrada .fe-shell {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
    max-width: 1240px; min-height: calc(100vh - 66px);
    margin: 0 auto; padding: 40px 32px 24px;
}

/* --- lado da marca --- */
body.fy-entrada .fe-brand { padding-right: 20px; }

body.fy-entrada .fe-brand__mark {
    display: flex; align-items: center; gap: 20px; margin-bottom: 26px;
}
body.fy-entrada .fe-brand__symbol {
    height: 96px; width: auto;
    filter: drop-shadow(0 10px 26px rgba(212, 169, 79, .30));
}
body.fy-entrada .fe-brand__word { height: 40px; width: auto; }
body.fy-entrada .fe-brand__product {
    align-self: center;
    padding-left: 18px; border-left: 1px solid var(--fe-line2);
    font-size: 14px; font-weight: 600; letter-spacing: .22em;
    text-transform: uppercase; color: var(--fe-g1);
}

body.fy-entrada .fe-rule {
    width: 84px; height: 3px; border-radius: 2px;
    background: var(--fe-gold-grad);
    box-shadow: 0 0 18px rgba(212, 169, 79, .45);
}

body.fy-entrada .fe-brand__title {
    margin: 22px 0 14px; font-size: 30px; line-height: 1.28; font-weight: 600;
    letter-spacing: -.01em; color: var(--fe-txt);
}
body.fy-entrada .fe-brand__title b { font-weight: 700; }
body.fy-entrada .fe-brand__sub {
    margin: 0 0 26px; font-size: 16px; color: var(--fe-txt2); max-width: 460px;
}

body.fy-entrada .fe-tags {
    display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 34px; padding: 0; list-style: none;
}
body.fy-entrada .fe-tags li {
    padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
    color: var(--fe-txt2); background: rgba(255, 255, 255, .035);
    border: 1px solid var(--fe-line2);
}

/* assinatura da casa (4CONTROL) */
body.fy-entrada .fe-signature {
    display: flex; align-items: center; gap: 14px;
    padding-top: 22px; border-top: 1px solid var(--fe-line2);
}
body.fy-entrada .fe-signature span {
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fe-txt3);
}
body.fy-entrada .fe-signature img { height: 15px; width: auto; }

/* --- cartao do formulario --- */
body.fy-entrada .fe-card {
    position: relative;
    padding: 40px 38px 34px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 34, 46, .92) 0%, rgba(18, 20, 28, .94) 100%);
    border: 1px solid var(--fe-line2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.fy-entrada .fe-card::before {
    content: ''; position: absolute; left: 38px; right: 38px; top: 0; height: 2px;
    border-radius: 0 0 2px 2px; background: var(--fe-gold-grad); opacity: .85;
}

body.fy-entrada .fe-card__head { margin-bottom: 26px; }
body.fy-entrada .fe-card__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--fe-txt); }
body.fy-entrada .fe-card__sub   { margin: 0; font-size: 14.5px; color: var(--fe-txt3); }

body.fy-entrada .fe-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 18px; padding: 12px 14px; border-radius: 10px;
    font-size: 14px; line-height: 1.45;
    color: #FFE2E2; background: rgba(232, 88, 88, .12);
    border: 1px solid rgba(232, 88, 88, .35); border-left: 3px solid #E85858;
}

body.fy-entrada .fe-field { margin-bottom: 16px; }
body.fy-entrada .fe-field > label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--fe-txt2);
}
body.fy-entrada .fe-input { position: relative; }
body.fy-entrada .fe-input > svg {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--fe-g2); pointer-events: none;
}
body.fy-entrada .fe-input > input {
    width: 100%; height: 50px; padding: 0 16px 0 44px;
    border-radius: 10px; border: 1px solid var(--fe-line2);
    background: rgba(255, 255, 255, .045); color: var(--fe-txt);
    font-family: inherit; font-size: 15px;
    outline: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
body.fy-entrada .fe-input > input::placeholder { color: var(--fe-txt3); }
body.fy-entrada .fe-input > input:hover { border-color: rgba(255, 255, 255, .18); }
body.fy-entrada .fe-input > input:focus {
    border-color: var(--fe-g2); background: rgba(212, 169, 79, .07);
    box-shadow: 0 0 0 3px rgba(212, 169, 79, .16);
}
/* autofill do Chrome nao pode voltar branco */
body.fy-entrada .fe-input > input:-webkit-autofill,
body.fy-entrada .fe-input > input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--fe-txt);
    -webkit-box-shadow: 0 0 0 60px #1B1F2A inset;
    caret-color: var(--fe-txt);
}

/* olho da senha */
body.fy-entrada .fe-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--fe-txt2);
    transition: color .18s ease, background .18s ease;
}
body.fy-entrada .fe-eye svg { width: 18px; height: 18px; }
body.fy-entrada .fe-eye:hover { color: var(--fe-g1); background: rgba(212, 169, 79, .10); }

body.fy-entrada .fe-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 50px; margin-top: 26px;
    border: 0; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
    color: #1B1405; background: var(--fe-gold-grad);
    box-shadow: 0 8px 24px rgba(212, 169, 79, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
body.fy-entrada .fe-btn:hover,
body.fy-entrada .fe-btn:focus {
    filter: brightness(1.06); transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 169, 79, .40), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.fy-entrada .fe-btn:active { transform: translateY(0); }

/* retorno do login por AJAX (Integrador) */
body.fy-entrada .fe-message {
    margin: 14px 0 0; text-align: center; font-size: 14px; color: #F5B5B5; min-height: 20px;
}

body.fy-entrada .fe-foot {
    position: relative; z-index: 1;
    padding: 16px 32px 22px; text-align: center;
    font-size: 12.5px; letter-spacing: .05em; color: var(--fe-txt3);
}

/* troca de idioma (portal PT/ES) */
body.fy-entrada .fe-lang {
    position: absolute; top: 26px; right: 32px; z-index: 2;
    display: flex; gap: 6px;
}
body.fy-entrada .fe-lang a {
    padding: 5px 11px; border-radius: 7px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
    color: var(--fe-txt2); background: rgba(255, 255, 255, .05);
    border: 1px solid var(--fe-line2); text-decoration: none;
}
body.fy-entrada .fe-lang a:hover { color: var(--fe-g1); border-color: var(--fe-g2); }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
    body.fy-entrada .fe-shell { gap: 40px; padding: 36px 24px 24px; }
    body.fy-entrada .fe-brand__title { font-size: 26px; }
    body.fy-entrada .fe-brand__symbol { height: 80px; }
    body.fy-entrada .fe-card { padding: 34px 28px 30px; }
    body.fy-entrada .fe-card::before { left: 28px; right: 28px; }
}
@media (max-width: 880px) {
    body.fy-entrada .fe-shell {
        grid-template-columns: 1fr; gap: 34px;
        padding: 34px 20px 24px; min-height: 0; align-items: start;
    }
    body.fy-entrada .fe-brand { padding-right: 0; text-align: center; }
    body.fy-entrada .fe-brand__mark { justify-content: center; }
    body.fy-entrada .fe-brand__title { font-size: 23px; }
    body.fy-entrada .fe-rule { margin: 0 auto; }
    body.fy-entrada .fe-tags { justify-content: center; margin-bottom: 22px; }
    body.fy-entrada .fe-signature { justify-content: center; }
    body.fy-entrada .fe-brand__sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 620px) {
    body.fy-entrada .fe-brand__mark { flex-wrap: wrap; gap: 14px; }
    body.fy-entrada .fe-brand__symbol { height: 66px; }
    body.fy-entrada .fe-brand__word { height: 28px; }
    body.fy-entrada .fe-brand__product {
        padding-left: 0; border-left: 0; width: 100%; font-size: 12.5px; letter-spacing: .18em;
    }
    body.fy-entrada .fe-brand__title { font-size: 21px; }
    body.fy-entrada .fe-card { padding: 30px 20px 26px; }
    body.fy-entrada .fe-card::before { left: 20px; right: 20px; }
    body.fy-entrada .fe-lang { top: 16px; right: 16px; }
}

/* acessibilidade: foco visivel */
body.fy-entrada a:focus-visible,
body.fy-entrada button:focus-visible,
body.fy-entrada input:focus-visible {
    outline: 2px solid var(--fe-g2); outline-offset: 2px;
}
