/* ---------- telas de acesso (login, cadastro etc.): cartão escuro sobre o fundo de marca; Roboto e componentes do DESIGN_SYSTEM.md ---------- */
.acesso {
  --arredondada: var(--fonte);
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px;
  overflow: hidden; isolation: isolate; background: var(--petroleo-3); font-family: var(--arredondada);
}
.acesso .cartao {
  width: 100%; max-width: 440px; padding: 24px 32px 28px; color: #fff; border-radius: var(--raio);
  animation: surgir 240ms ease-out both;
}
.acesso .cartao.largo { max-width: 580px; }
.acesso h1 { font-family: var(--arredondada); font-weight: 500; font-size: 1.5rem; margin-bottom: 8px; }
.acesso .mudo { color: var(--texto-sobre-petroleo-3); font-size: .875rem; }
.acesso .campo > span { color: var(--texto-sobre-petroleo-2); font-size: .8125rem; font-weight: 500; margin-bottom: 4px; }
.acesso input:not([type=checkbox]):not([type=radio]):not([type=file]), .acesso select {
  min-height: 44px; border-radius: var(--raio-p); background: #fff; color: #1f2937; border: 1px solid transparent; font-weight: 400;
}
.acesso input::placeholder { color: #64748b; font-weight: 400; }
.acesso input:focus, .acesso select:focus { border-color: var(--agua-claro); box-shadow: 0 0 0 3px rgba(var(--agua-claro-rgb), .4); }
.acesso .segmentado { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); border-radius: var(--raio-p); }
.acesso .segmentado button { color: #fff; }
.acesso .segmentado button[aria-pressed="true"] { background: #fff; color: var(--petroleo); }
.acesso .link { color: var(--agua-claro); }
.acesso .erro-form { color: #fdba74; font-weight: 500; }
.acesso .ajuda { color: var(--texto-sobre-petroleo-3); }
.acesso .marcar { color: var(--menu-texto); }
.acesso .btn { border-radius: var(--raio-p); min-height: 44px; font-size: .9375rem; font-weight: 500; }
/* sobre o fundo escuro, o botão principal usa o azul claro do tema escuro (contraste) */
.acesso .btn:not(.sec):not(.claro) { background: var(--agua-claro); color: #0b1f33; }
.acesso .btn:not(.sec):not(.claro):hover { background: color-mix(in srgb, var(--agua-claro) 85%, #fff); }
.acesso .acoes { margin-top: 16px; justify-content: space-between; }
.acesso .cartao h1 + .mudo { margin-bottom: 20px; }
.acesso-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.acesso-marca { font-family: var(--cursiva); font-size: 1.45rem; line-height: 1.1; color: var(--agua-viva); text-align: right; }
.voltar {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px 7px 8px; border-radius: 999px; flex: none;
  color: var(--texto-sobre-petroleo-2); text-decoration: none; font-weight: 500; font-size: .875rem; background: rgba(255, 255, 255, .1); transition: background-color var(--rapido) ease;
}
.voltar:hover { background: rgba(255, 255, 255, .18); }

/* login */
.login-cabeca { text-align: center; margin-bottom: 22px; }
.login-cabeca .mudo { margin: 0 auto; max-width: 30ch; }
.login-marca { margin: 0 0 24px; font-family: var(--cursiva); font-size: 1.65rem; line-height: 1.1; color: var(--agua-viva); }
.login-selo {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--raio); margin-bottom: 12px; color: #fff;
  background: var(--petroleo-2);
}
.login-selo svg { width: 28px; height: 28px; }
.acesso .campo > span.entrada { position: relative; display: block; margin: 0; font-size: 1rem; color: inherit; }
.entrada > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--icone-campo); pointer-events: none; transition: color .2s ease; }
.entrada:focus-within > svg { color: var(--petroleo-2); }
.acesso .entrada input:not([type=checkbox]) { padding-left: 48px; }
.acesso .entrada input[type=password], .acesso .entrada #senha { padding-right: 52px; }
.olho {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: var(--raio-p);
  display: grid; place-items: center; background: transparent; color: var(--icone-campo); cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.olho:hover { background: rgba(var(--petroleo-rgb), .08); color: var(--petroleo-2); }
.olho svg { width: 20px; height: 20px; }

.interruptor { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 2px 0 4px; cursor: pointer; font-weight: 400; color: var(--menu-texto); }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .trilho { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background-color .2s ease; }
.interruptor .trilho::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, .7, .3, 1.3); }
.interruptor input:checked + .trilho { background: var(--agua); }
.interruptor input:checked + .trilho::after { transform: translateX(18px); }
.interruptor input:focus-visible + .trilho { outline: 3px solid var(--agua-claro); outline-offset: 2px; }

.login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.link-icone {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--raio-p); border: 0; background: transparent; cursor: pointer;
  color: var(--agua-claro); font: inherit; font-weight: 500; font-size: .875rem; text-decoration: none; transition: background-color var(--rapido) ease;
}
.link-icone:hover { background: rgba(255, 255, 255, .09); }
@media (max-width: 480px) {
  .acesso { padding: 20px 12px; place-items: start center; }
  .acesso .cartao { padding: 20px 20px 24px; }
  .acesso-marca { font-size: 1.25rem; }
}

/* ---------- entradas e transições ---------- */
.revelar { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.revelar.visivel { opacity: 1; transform: none; }
/* "backwards" e não "both": terminada a animação, nada de transform fica no elemento —
   senão ele vira referência do position: fixed e a barra do menu do celular rola junto com a página */
.entrar { animation: entrar .32s ease backwards; }

@keyframes acender { to { fill: var(--ouro-luz); } }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes aproximar { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes surgir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes brotar { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes pulsar { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 234, .45); } 50% { box-shadow: 0 0 0 6px rgba(47, 107, 234, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
  .cena-svg .janela.acesa { fill: var(--ouro-luz); }
}

/* logotipo ao lado do nome do condomínio, no topo do cartão */
.acesso-marca { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.acesso-logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 3px; border-radius: 13px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.acesso-logo img { width: 100%; height: 100%; object-fit: contain; }

/* cadastro: campos em verde-água claro que acendem em dourado com o foco */
.form-cadastro input:not([type=checkbox]):not([type=radio]):not([type=file]) {
  background: #dcefec; border-color: #b9dcd7; color: var(--petroleo-3);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.form-cadastro input::placeholder { color: #6c8f96; }
.form-cadastro input:not([type=checkbox]):not([type=radio]):not([type=file]):focus {
  background: #fff6dc; border-color: var(--ouro-luz); box-shadow: 0 0 0 5px rgba(var(--ouro-luz-rgb), .3);
}

/* bloco: duas caixas, Alfa e Beta */
.blocos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcao-bloco {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 12px; border-radius: 16px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: var(--texto-sobre-petroleo-2); font-weight: 700; font-size: 1.02rem;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .15s ease;
}
.opcao-bloco svg { width: 20px; height: 20px; opacity: .8; }
.opcao-bloco:hover { border-color: rgba(var(--agua-claro-rgb), .7); }
.opcao-bloco:active { transform: scale(.97); }
.opcao-bloco[aria-pressed="true"] { background: var(--agua-claro); border-color: var(--agua-claro); color: var(--petroleo-3); box-shadow: 0 8px 20px rgba(var(--agua-claro-rgb), .3); }
.opcao-bloco[aria-pressed="true"] svg { opacity: 1; }
.opcao-bloco:focus-visible { outline: 3px solid var(--ouro-luz); outline-offset: 2px; }

/* botão Cadastrar: dourado das janelas acesas, letra escura para boa leitura */
.acesso .form-cadastro .btn:not(.sec):not(.claro) {
  background: linear-gradient(180deg, #f6d27e, #e8b649); color: var(--petroleo-3); font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(232, 182, 73, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.acesso .form-cadastro .btn:not(.sec):not(.claro):hover { box-shadow: 0 14px 30px rgba(232, 182, 73, .45), inset 0 1px 0 rgba(255, 255, 255, .5); filter: brightness(1.04); }
.acesso .form-cadastro .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* login aberto sem o link do condomínio: o cadastro é pelo link que o síndico envia */
.login-cadastro { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .86rem; line-height: 1.4; color: var(--texto-sobre-petroleo, #cfeeee); text-align: center; }
.login-cadastro svg { flex: none; margin-top: 2px; opacity: .8; }
