/* =====================================================================
   Y'ALL COLABORADOR - telas de entrada (05/11/2026)
   index.asp (login) e SelecaoProjeto.asp. Mesmo tom suave do EAD
   (ead/css/index_login.css: #C8416F sobre blush). Prefixo ce-.
   O logo "Y'ALL! COLABORADOR" (assets/img/pwa/logo-yall-colaborador.jpg)
   foi mantido. Suba o ?v= nas duas paginas ao alterar.
   ===================================================================== */
:root {
    --ce-primary: #C8416F;
    --ce-primary-forte: #B23A63;
    --ce-primary-claro: #DB7193;
    --ce-primary-rgb: 200, 65, 111;
    --ce-fundo: #FBF5F7;
    --ce-sobreposta: #F7EEF1;
    --ce-borda: rgba(120, 40, 70, .12);
    --ce-borda-forte: rgba(120, 40, 70, .20);
    --ce-texto: #2A1F24;
    --ce-texto-2: #5C4A52;
    --ce-mudo: #8A7880;
    --ce-ok: #237A55;
    --ce-ok-10: rgba(46, 148, 104, .12);
    --ce-erro: #B42318;
    --ce-erro-10: rgba(209, 67, 67, .10);
    --ce-ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
html { background: #FBF5F7; }
body.ce-body {
    margin: 0;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
    color: var(--ce-texto);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px; line-height: 1.45; letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background:
        radial-gradient(760px 420px at 100% 0%, rgba(var(--ce-primary-rgb), .14), transparent 62%),
        radial-gradient(640px 420px at 0% 100%, rgba(235, 217, 238, .75), transparent 62%),
        linear-gradient(160deg, #FDF7F8 0%, #F8E9EE 100%);
    background-attachment: fixed;
}
.ce-envelope { width: 100%; max-width: 440px; }

.ce-caixa {
    background: #fff;
    border-radius: 24px;
    padding: 14px 14px 22px;
    box-shadow: 0 24px 60px rgba(120, 30, 60, .10), 0 0 0 1px rgba(var(--ce-primary-rgb), .10);
    animation: ce-sobe .45s var(--ce-ease) both;
}
@keyframes ce-sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.ce-logo {
    display: block; width: 100%; height: auto; aspect-ratio: 640 / 370;
    border-radius: 16px; object-fit: cover;
    box-shadow: 0 10px 26px rgba(var(--ce-primary-rgb), .22);
}
.ce-corpo { padding: 22px 10px 0; }
.ce-ola { margin: 0 0 4px; color: var(--ce-primary-forte); font-size: 13px; font-weight: 600; }
.ce-titulo { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ce-subtitulo { margin: 0 0 20px; color: var(--ce-texto-2); font-size: 14px; }

.ce-aviso {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 18px; padding: 12px 14px; border-radius: 14px;
    font-size: 14px; font-weight: 500; line-height: 1.45;
}
.ce-aviso svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; stroke: currentColor; }
.ce-aviso--erro { background: var(--ce-erro-10); color: var(--ce-erro); }
.ce-aviso--ok { background: var(--ce-ok-10); color: var(--ce-ok); }

.ce-campo { margin-bottom: 14px; }
.ce-campo label { display: block; margin-bottom: 7px; color: var(--ce-texto-2); font-size: 13px; font-weight: 600; }
.ce-entrada {
    display: flex; align-items: center; gap: 10px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--ce-borda-forte);
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ce-entrada:focus-within { border-color: var(--ce-primary); box-shadow: 0 0 0 4px rgba(var(--ce-primary-rgb), .12); }
.ce-entrada > svg { flex: 0 0 20px; width: 20px; height: 20px; stroke: var(--ce-mudo); }
.ce-entrada:focus-within > svg { stroke: var(--ce-primary); }
.ce-entrada input {
    flex: 1 1 auto; min-width: 0; height: 52px;
    border: 0; background: transparent; outline: none;
    color: var(--ce-texto); font-family: inherit;
    font-size: 16px; /* 16px evita o zoom automatico do iPhone */
}
.ce-entrada input::placeholder { color: #B3A4AB; }
.ce-olho {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-right: -8px;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.ce-olho:hover { background: var(--ce-sobreposta); }
.ce-olho svg { width: 20px; height: 20px; stroke: var(--ce-mudo); }

.ce-lembrar { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; cursor: pointer; }
.ce-lembrar input { position: absolute; opacity: 0; width: 0; height: 0; }
.ce-chave { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: #E3D6DC; transition: background .2s ease; }
.ce-chave::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
    border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(60, 20, 35, .22);
    transition: transform .2s var(--ce-ease);
}
.ce-lembrar input:checked + .ce-chave { background: var(--ce-primary); }
.ce-lembrar input:checked + .ce-chave::after { transform: translateX(18px); }
.ce-lembrar input:focus-visible + .ce-chave { box-shadow: 0 0 0 4px rgba(var(--ce-primary-rgb), .18); }
.ce-lembrar__txt b { display: block; font-size: 14.5px; font-weight: 600; }
.ce-lembrar__txt span { display: block; margin-top: 1px; color: var(--ce-mudo); font-size: 12.5px; }

.ce-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 54px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--ce-primary), var(--ce-primary-forte));
    color: #fff; font-family: inherit; font-size: 16px; font-weight: 700;
    box-shadow: 0 10px 24px rgba(var(--ce-primary-rgb), .28);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.ce-btn:hover { box-shadow: 0 12px 28px rgba(var(--ce-primary-rgb), .34); }
.ce-btn:active { transform: translateY(1px); }
.ce-btn[disabled] { opacity: .7; cursor: progress; }
.ce-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.ce-girando { animation: ce-gira 1s linear infinite; }
@keyframes ce-gira { to { transform: rotate(360deg); } }

.ce-btn-linha {
    display: none; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 48px; margin-top: 10px;
    border: 1.5px solid rgba(var(--ce-primary-rgb), .35); border-radius: 14px;
    background: #fff; color: var(--ce-primary-forte);
    font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.ce-btn-linha.is-vis { display: flex; }
.ce-btn-linha svg { width: 18px; height: 18px; stroke: currentColor; }
.ce-dica {
    display: none; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
    background: var(--ce-sobreposta); color: var(--ce-texto-2); font-size: 13px; line-height: 1.5;
}
.ce-dica.is-vis { display: block; }
.ce-dica b { color: var(--ce-texto); }

.ce-links { display: flex; flex-direction: column; margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--ce-borda); }
.ce-link {
    display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 8px 2px;
    color: var(--ce-texto); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.ce-link + .ce-link { border-top: 1px solid var(--ce-borda); }
.ce-link__ic {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(var(--ce-primary-rgb), .08); color: var(--ce-primary);
}
.ce-link__ic svg { width: 17px; height: 17px; stroke: currentColor; }
.ce-link > svg:last-child { margin-left: auto; width: 16px; height: 16px; stroke: #C2B3BA; }
.ce-link:hover { color: var(--ce-primary-forte); }

.ce-assinatura { margin: 16px 0 0; color: var(--ce-mudo); font-size: 12px; text-align: center; letter-spacing: .02em; }
.ce-assinatura a { color: var(--ce-primary-forte); font-weight: 600; text-decoration: none; }

/* selecao de projeto */
.ce-lista { display: flex; flex-direction: column; gap: 10px; }
.ce-projeto {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 14px;
    border: 1.5px solid var(--ce-borda); border-radius: 16px;
    background: #fff; color: var(--ce-texto);
    font-family: inherit; text-align: left; cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.ce-projeto:hover, .ce-projeto:focus-visible { border-color: var(--ce-primary); box-shadow: 0 0 0 4px rgba(var(--ce-primary-rgb), .10); outline: none; }
.ce-projeto:active { transform: scale(.99); }
.ce-projeto.is-atual { border-color: rgba(var(--ce-primary-rgb), .45); background: rgba(var(--ce-primary-rgb), .04); }
.ce-projeto.is-indo { opacity: .6; }
.ce-selo {
    display: flex; align-items: center; justify-content: center; flex: 0 0 44px;
    height: 44px; border-radius: 13px;
    background: rgba(var(--ce-primary-rgb), .10); color: var(--ce-primary-forte);
    font-size: 15px; font-weight: 800;
}
.ce-projeto__info { flex: 1 1 auto; min-width: 0; }
.ce-projeto__nome { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ce-projeto__saldo { display: block; margin-top: 2px; color: var(--ce-mudo); font-size: 13px; }
.ce-projeto__saldo b { color: var(--ce-ok); font-weight: 600; }
.ce-projeto__tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(var(--ce-primary-rgb), .10); color: var(--ce-primary-forte); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.ce-projeto > svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: #C2B3BA; }

@media (max-width: 360px) {
    .ce-corpo { padding: 18px 6px 0; }
    .ce-titulo { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
