/*
 * Telas de acesso (login, cadastro de paciente, vinculação a associação,
 * cadastro de médico e parceiro) — layout `layouts/acesso`.
 *
 * Desenho: login.html / cadastro_geral.html do cliente (memorando 08/10/2026),
 * com a identidade das LPs — Sora nos títulos, DM Sans no texto, os mesmos
 * verdes e o mint de destaque. Vem DEPOIS do Bootstrap (vendor/app.min.css) e
 * só reescreve a aparência: modal, invalid-feedback, alert e o `.obrigatorio`
 * do serena-forms.js continuam sendo os do painel.
 */
:root {
    --ac-ink: #244f45;
    --ac-deep: #173f37;
    --ac-mint: #61d4cf;
    --ac-mint-soft: #e5f5f0;
    --ac-paper: #f8f7f3;
    --ac-line: #d9e4de;
    --ac-copy: #63766f;
    --ac-shadow: 0 24px 65px rgba(23, 63, 55, .13);
}

body.acesso {
    min-height: 100vh;
    margin: 0;
    color: var(--ac-ink);
    background:
        radial-gradient(circle at 2% 98%, rgba(97, 212, 207, .16), transparent 30%),
        radial-gradient(circle at 85% 100%, rgba(191, 231, 218, .45), transparent 32%),
        var(--ac-paper);
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.acesso h1, .acesso h2, .acesso h3, .acesso .ac-eyebrow, .acesso .ac-passos { font-family: "Sora", sans-serif; }
.acesso a { color: var(--ac-ink); }

/* ---------- Topo ---------- */
.ac-topo { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 5vw, 72px); }
.ac-topo .ac-logo img { display: block; width: 124px; height: auto; }
.ac-topo-link { color: #59736b !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.ac-topo-link strong { color: var(--ac-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Duas colunas ---------- */
.ac-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(40px, 7vw, 120px); align-items: center; padding: 18px clamp(20px, 5vw, 72px) 56px; max-width: 1360px; margin: 0 auto; }
.ac-layout--estreito { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }

.ac-boasvindas { max-width: 520px; }
.ac-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: #3fb4a3; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ac-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 8px; background: currentColor; }
.ac-boasvindas h1 { margin: 0; color: var(--ac-ink); font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.055em; line-height: 1.02; }
.ac-boasvindas > p { max-width: 470px; margin: 24px 0 0; color: var(--ac-copy); font-size: 17px; line-height: 1.6; }

.ac-nota { display: flex; align-items: flex-start; gap: 12px; max-width: 470px; margin-top: 26px; padding: 16px; border: 1px solid #d3e7de; border-radius: 15px; background: rgba(229, 245, 240, .8); color: #285d51; font-size: 13px; font-weight: 600; line-height: 1.5; }
.ac-nota-icone { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ac-mint); color: var(--ac-deep); font-weight: 800; }

.ac-beneficios { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 480px; margin-top: 44px; }
.ac-beneficio { padding: 0 16px; border-left: 1px solid #d6e5df; text-align: center; }
.ac-beneficio:first-child { border-left: 0; }
.ac-beneficio i { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 14px; background: var(--ac-mint-soft); color: var(--ac-ink); font-size: 22px; }
.ac-beneficio span { display: block; color: #215247; font-size: 12px; font-weight: 600; line-height: 1.45; }

.ac-perfis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; margin-top: 32px; }
.ac-perfil { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #d9e6e0; border-radius: 14px; background: rgba(255, 255, 255, .55); }
.ac-perfil i { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--ac-mint-soft); color: var(--ac-ink); font-size: 19px; }
.ac-perfil b { display: block; font-size: 13px; }
.ac-perfil span { display: block; margin-top: 1px; color: #70827b; font-size: 11px; }

/* ---------- Cartão do formulário ---------- */
.ac-card { width: 100%; max-width: 680px; justify-self: end; padding: 44px clamp(24px, 4vw, 54px) 36px; border: 1px solid #d6e4de; border-radius: 28px; background: rgba(255, 255, 255, .95); box-shadow: var(--ac-shadow); }
.ac-layout--estreito .ac-card { max-width: 580px; }
.ac-card h2 { margin: 0; color: var(--ac-ink); font-size: clamp(30px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.ac-card .ac-lead { margin: 10px 0 26px; color: var(--ac-copy); font-size: 15px; line-height: 1.55; }

/* Passos ("1 Crie sua conta · 2 Acesse a Serena") */
.ac-passo-rotulo { color: #3fb4a3; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.ac-passos { position: relative; display: grid; grid-template-columns: repeat(var(--ac-n, 2), 1fr); margin: 20px 0 36px; }
.ac-passos::before { content: ""; position: absolute; top: 20px; left: calc(50% / var(--ac-n, 2)); right: calc(50% / var(--ac-n, 2)); height: 2px; background: #d7e5df; }
.ac-passo { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: #788981; font-size: 11px; text-align: center; }
.ac-passo-bola { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid #d4e2dc; border-radius: 50%; background: #fff; color: #6d8179; font-size: 14px; font-weight: 700; }
.ac-passo.ativo { color: var(--ac-ink); font-weight: 700; }
.ac-passo.ativo .ac-passo-bola { border-color: var(--ac-ink); background: var(--ac-ink); color: #fff; box-shadow: 0 0 0 6px #e7f5f0; }
.ac-passo.feito .ac-passo-bola { border-color: var(--ac-mint); background: var(--ac-mint); color: var(--ac-deep); }

/* Campos — por cima do Bootstrap */
.acesso .form-label { margin-bottom: 7px; color: #174b40; font-size: 13px; font-weight: 700; }
.acesso .form-control,
.acesso .form-select { height: 54px; padding: 0 15px; border: 1px solid #d5e2dc; border-radius: 12px; color: var(--ac-ink); background-color: #fff; font-size: 15px; box-shadow: none; }
.acesso .form-control::placeholder { color: #a3b2ad; }
.acesso .form-control:focus,
.acesso .form-select:focus { border-color: #1d6c59; box-shadow: 0 0 0 3px #e5f5ef; }
.acesso .form-control:disabled { background: #f4f7f5; color: #4d6a61; }
.acesso .form-text { color: #788882; font-size: 12px; }
.acesso .form-check-input { width: 18px; height: 18px; margin-top: .15em; border-color: #b8cbc3; }
.acesso .form-check-input:checked { background-color: var(--ac-ink); border-color: var(--ac-ink); }
.acesso .form-check-label { color: #50685f; font-size: 13px; line-height: 1.5; }
.acesso .ac-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.acesso .ac-grade .ac-cheio { grid-column: 1 / -1; }

/* Botões */
.acesso .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.acesso .btn-primary { border: 0; background: var(--ac-ink); color: #fff; box-shadow: 0 14px 25px rgba(23, 63, 55, .16); }
.acesso .btn-primary:hover,
.acesso .btn-primary:focus { background: var(--ac-deep); color: #fff; }
.acesso .btn-light { border: 1px solid #cfdfd8; background: #fff; color: #5d736c; }
.ac-acoes { display: grid; margin-top: 26px; padding-top: 22px; border-top: 1px solid #dce7e2; }

.ac-rodape-card { margin: 24px 0 0; color: #72827c; font-size: 13px; text-align: center; }
.ac-rodape-card a { font-weight: 700; text-underline-offset: 3px; }
.ac-seguro { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: #71817b; font-size: 12px; }
.ac-divisor { display: flex; align-items: center; gap: 13px; margin: 26px 0 20px; color: #8a9a94; font-size: 11px; }
.ac-divisor::before, .ac-divisor::after { content: ""; height: 1px; flex: 1; background: #dce6e1; }
.ac-caixa { padding: 16px; border: 1px solid #d9e7e1; border-radius: 14px; background: #f8fbf9; text-align: center; }
.ac-caixa p { margin: 0 0 8px; color: #64786f; font-size: 13px; }
.ac-caixa a { font-weight: 700; text-underline-offset: 3px; }
.ac-ajuda { margin-top: 20px; color: #74867e; font-size: 12px; text-align: center; }
.ac-ajuda a { font-weight: 700; color: #41655a; }

.acesso .alert { border-radius: 12px; font-size: 14px; }

/* Tela de sucesso */
.ac-sucesso { padding-top: 4px; text-align: center; }
.ac-sucesso-circulo { position: relative; width: 83px; height: 83px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #e0f6ed; color: #18765d; font-size: 37px; }
.ac-sucesso-circulo::after { content: ""; position: absolute; inset: -7px; border: 1px solid #d2ebe1; border-radius: 50%; }
.ac-sucesso h2 { max-width: 440px; margin: 0 auto; }
.ac-sucesso p { max-width: 450px; margin: 15px auto 23px; color: var(--ac-copy); font-size: 15px; line-height: 1.6; }
.ac-conta { display: flex; align-items: center; gap: 13px; max-width: 455px; margin: 24px auto; padding: 15px; border: 1px solid #d8e7e1; border-radius: 15px; background: #f8fbf9; text-align: left; }
.ac-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ac-ink); color: #fff; font-weight: 700; }
.ac-conta strong { display: block; color: #16493e; font-size: 14px; }
.ac-conta div > span { display: block; margin-top: 2px; color: #71837c; font-size: 13px; }

/* ---------- Vinculação a associação ---------- */
.ac-associacao { display: inline-flex; align-items: center; gap: 13px; max-width: 100%; margin-top: 26px; padding: 12px 16px 12px 12px; border: 1px solid rgba(36, 79, 69, .14); border-radius: 15px; background: rgba(255, 255, 255, .55); text-decoration: none; }
.ac-associacao:hover { border-color: rgba(36, 79, 69, .3); }
.ac-associacao-marca { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #176848; color: #fff; font-family: "Sora", sans-serif; font-weight: 600; }
.ac-associacao-marca img { filter: brightness(0) invert(1); }
.ac-associacao strong { display: block; color: var(--ac-ink); font-size: 13px; }
.ac-associacao small { display: block; margin-top: 1px; color: #5a7a70; font-size: 11px; }

.ac-docs { display: grid; gap: 12px; }
.ac-doc { padding: 14px; border: 1px dashed #bfd5ca; border-radius: 14px; background: #fbfdfb; }
.ac-doc-cabeca { display: flex; align-items: center; gap: 12px; }
.ac-doc-cabeca b { display: block; font-size: 14px; }
.ac-doc-cabeca div > span { display: block; margin-top: 2px; color: #71827c; font-size: 12px; }
.ac-doc-numero { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #e6f5f0; color: #11634f; font-size: 12px; font-weight: 700; }
.ac-doc .serena-dropzone, .ac-doc input[type="file"] { margin-top: 12px; }
.ac-doc-motivo { margin: 10px 0 0; color: #b4483c; font-size: 12px; }

.ac-aviso { display: flex; gap: 11px; margin-top: 18px; padding: 14px; border-radius: 12px; background: #edf7f3; color: #4b7066; font-size: 13px; line-height: 1.55; }
.ac-aviso i { color: #24775f; font-size: 18px; }

.ac-pontos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ac-ponto { padding: 13px; border: 1px solid #dce8e2; border-radius: 12px; background: #f4faf7; }
.ac-ponto b { display: block; margin-bottom: 4px; color: #1b5448; font-size: 12px; }
.ac-ponto span { color: #63766f; font-size: 12px; line-height: 1.4; }

.ac-termo { max-height: 300px; overflow: auto; padding: 0 20px 18px; border: 1px solid #dce6e1; border-radius: 13px; background: #fbfcfb; color: #5c6f68; font-size: 13px; line-height: 1.65; }
.ac-termo-titulo { position: sticky; top: 0; margin: 0 -20px 14px; padding: 14px 20px; border-bottom: 1px solid #dce6e1; background: #f0f7f3; }
.ac-termo-titulo span { display: block; color: #579f8d; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.ac-termo-titulo h3 { margin: 6px 0 2px; color: var(--ac-ink); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ac-termo-titulo small { color: #7c8f88; font-size: 11px; }
.ac-termo h4 { margin: 14px 0 4px; color: var(--ac-ink); font-size: 13px; font-weight: 700; font-family: "DM Sans", sans-serif; }
.ac-termo p { margin: 0; }
.ac-termo-assinatura { margin-top: 16px; padding-top: 12px; border-top: 1px solid #dce6e1; color: #284f45; }
.ac-termo-assinatura b, .ac-termo-assinatura span { display: block; margin-top: 3px; }
.ac-aceite { margin-top: 16px; padding: 14px 14px 14px 40px; border: 1px solid #cfe3da; border-radius: 12px; background: #f4faf7; }
.ac-aceite .form-check-label { color: #345c52; font-weight: 600; }

.ac-acoes--duas { display: flex; justify-content: space-between; gap: 14px; }
.ac-acoes--duas .btn-primary { margin-left: auto; }

.ac-checkout { display: grid; grid-template-columns: 1fr .95fr; gap: 16px; }
.ac-preco { padding: 22px; border-radius: 15px; background: var(--ac-ink); color: #fff; }
.ac-preco small { display: block; color: #8fddca; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ac-preco-valor { margin: 12px 0 4px; font-family: "Sora", sans-serif; font-size: 40px; font-weight: 600; letter-spacing: -.05em; }
.ac-preco p { margin: 0; color: #cae4dd; font-size: 13px; line-height: 1.5; }
.ac-pagamento { margin: 0; padding: 18px 20px; border: 1px solid #dce6e1; border-radius: 15px; }
.ac-pagamento legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; color: var(--ac-ink); font-size: 14px; font-weight: 700; }
.ac-pag-opcao { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #edf1ef; color: #45625a; font-size: 14px; cursor: pointer; }
.ac-pag-opcao:first-of-type { border-top: 0; }
.ac-pag-opcao input { width: 18px; height: 18px; accent-color: var(--ac-ink); }

.ac-pix { text-align: center; }
.ac-pix img { display: block; margin: 0 auto; padding: 10px; border: 1px solid #dce6e1; border-radius: 16px; background: #fff; }
.ac-pix .form-label { display: block; text-align: left; }
.ac-pix-copia { display: flex; gap: 8px; }
.ac-pix-copia .btn { flex: 0 0 auto; }
.ac-pix-espera { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 16px 0 0; color: #4b7066; font-size: 13px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
    .ac-layout, .ac-layout--estreito { grid-template-columns: 1fr; gap: 34px; padding-top: 8px; }
    .ac-boasvindas { max-width: 680px; }
    .ac-card, .ac-layout--estreito .ac-card { justify-self: center; }
}
@media (max-width: 620px) {
    .ac-topo { padding: 20px; }
    .ac-layout { padding: 4px 16px 28px; }
    .ac-boasvindas h1 { font-size: 38px; }
    .ac-boasvindas > p { margin-top: 18px; font-size: 15px; }
    .ac-beneficios { margin-top: 28px; }
    .ac-beneficio { padding: 0 6px; }
    .ac-beneficio span { font-size: 11px; }
    .ac-perfis { margin-top: 24px; }
    .ac-card { padding: 28px 20px 26px; border-radius: 21px; }
    .ac-passos { margin-bottom: 28px; }
    .acesso .ac-grade { grid-template-columns: 1fr; }
    .ac-pontos, .ac-checkout { grid-template-columns: 1fr; }
    .ac-acoes--duas { flex-direction: column-reverse; }
    .ac-acoes--duas .btn-primary { margin-left: 0; }
}

/* Escala reduzida no computador, como nas LPs (75%), mas um pouco maior (80%):
   aqui se digita, e o campo precisa de letra legível. O zoom vai nos blocos, não
   no body: no body ele distorceria a posição dos modais e tooltips do Bootstrap. */
@media (min-width: 1024px) {
    .ac-topo, .ac-layout { zoom: .8; }
}
