/*
 * Telas de acesso: login, esqueci a senha, "confira seu e-mail" e criar ou
 * redefinir senha (design "Alpes Login"). Tokens em site-base.css.
 */
.acesso { min-height: 100vh; min-height: 100dvh; display: flex; gap: 8px; padding: 8px; }
.acesso__coluna { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; padding: 0 clamp(8px, 3vw, 32px); }

.acesso__topo { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acesso__marca { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.acesso__marca span { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.acesso__marca:hover { color: var(--ink); }
.acesso__ajuda { min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--mut); text-decoration: none; }
.acesso__ajuda:hover { color: var(--ink); }

.acesso__principal { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 48px) 0; outline: none; }
.acesso__caixa { width: 100%; max-width: 400px; }

.acesso__rodape { min-height: 64px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--mut); }

/* Painel lime (só em tela larga) */
.acesso__painel {
  flex: 1 1 520px; min-width: 0; position: relative; overflow: hidden;
  border-radius: 32px; background: var(--lime);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(32px, 4vw, 56px);
}
.acesso__estrela { width: 28px; height: 28px; fill: var(--ink); }
.acesso__chamada { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.acesso__frase { margin: 0; max-width: 12ch; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
.acesso__sub { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.55; color: #2e2e2e; }
.acesso__marca-fundo { position: absolute; right: -6%; bottom: -8%; width: 62%; color: var(--ink); opacity: 0.1; }
@media (max-width: 959px) { .acesso__painel { display: none; } }

/* Formulário */
.acesso-form { display: flex; flex-direction: column; gap: 28px; }
.acesso-cabeca { display: flex; flex-direction: column; gap: 8px; }
.acesso-cabeca h1 { margin: 0; font-size: clamp(36px, 5vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -0.04em; outline: none; }
.acesso-cabeca p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mut); }
.acesso-cabeca b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.acesso-conta { font-size: 15px !important; font-weight: 600; color: var(--ink) !important; overflow-wrap: anywhere; }

.acesso-avisos { display: flex; flex-direction: column; gap: 8px; }
.acesso-aviso { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--card); font-size: 15px; line-height: 1.45; outline: none; }
.acesso-aviso--erro { background: #fdecea; color: #a3271b; }

.acesso-campos { display: flex; flex-direction: column; gap: 16px; }
.acesso-campo { display: flex; flex-direction: column; gap: 8px; }
.acesso-campo label { font-size: 14px; font-weight: 600; }
.acesso-campo__linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acesso-campo__erro { font-size: 14px; color: #a3271b; }

.acesso-input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  font-size: 16px; outline: none; transition: border-color 150ms ease;
}
.acesso-input::placeholder { color: #9a9a96; }
.acesso-input:focus { border-color: var(--ink); }
.acesso-input[aria-invalid="true"] { border-color: #c0392b; }

.acesso-senha { position: relative; }
.acesso-senha .acesso-input { padding-right: 92px; }
.acesso-senha .password-toggle {
  position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500;
}
.acesso-senha .password-toggle:hover { background: var(--card); }

.acesso-link {
  padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.acesso-link:hover { color: var(--mut); }
.acesso-link:disabled { color: var(--mut); text-decoration: none; }

.acesso-botao {
  width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white);
  font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 150ms ease;
}
.acesso-botao:hover:not(:disabled) { background: var(--ink-hover); }
.acesso-botao:disabled { opacity: 0.8; }
.acesso-giro {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white);
  animation: acessoGiro 700ms linear infinite;
}
@keyframes acessoGiro { to { transform: rotate(360deg); } }

.acesso-voltar {
  align-self: flex-start; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 9999px;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.acesso-voltar:hover { background: #e9e9e6; color: var(--ink); }

.acesso-pe { margin: 0; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--mut); }
.acesso-pe a { font-weight: 500; }
.acesso-pe .acesso-link { font-size: 15px; }

.acesso-icone { width: 56px; height: 56px; border-radius: 16px; background: var(--lime); display: flex; align-items: center; justify-content: center; }

/* Requisitos da senha: viram lime quando cumpridos (o senha.js põe .met). */
.acesso-regras { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.acesso-regras li {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 9999px;
  background: var(--card); font-size: 13px; font-weight: 500; transition: background-color 180ms ease;
}
.acesso-regras li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='1.6' fill='%230e0e0e'/%3E%3C/svg%3E");
}
.acesso-regras li.met { background: var(--lime); }
.acesso-regras li.met::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%230e0e0e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .acesso-input, .acesso-botao, .acesso-regras li { transition: none; }
  .acesso-giro { animation-duration: 2s; }
}
