/* =====================================================================
   CSACI · VISUAL VIDRO · TELAS DE ACESSO  [VV7]
   Login, troca de senha obrigatória e redefinição pelo link do e-mail.
   Só é carregado com VISUAL_VIDRO=true (body.vda).
   ===================================================================== */
body.vda.vda {
  --vda-principal: #1d63c6;
  --vda-destaque: #ff6f00;
  --vda-vidro: rgba(14, 26, 58, .55);
  --vda-borda: rgba(255, 255, 255, .16);
  --vda-texto: #eef2fb;
  --vda-texto-2: #b9c3dc;
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--vda-texto); background: #060b1a;
}
body.vda * { box-sizing: border-box; }

/* fundo: a foto da escola + manchas de cor + reflexo espelhado */
.vda-fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.vda-foto { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); filter: saturate(1.1); }
.vda-veu { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4, 10, 26, .86) 0%, rgba(6, 18, 44, .62) 46%, rgba(6, 14, 34, .82) 100%); }
.vda-bolha { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform; animation: vda-flutuar 18s ease-in-out infinite alternate; }
.vda-bolha--1 { width: 620px; height: 620px; left: -180px; top: -220px; background: var(--vda-principal); }
.vda-bolha--2 { width: 520px; height: 520px; right: -160px; bottom: -220px; background: var(--vda-destaque); opacity: .38; animation-duration: 23s; animation-delay: -6s; }
.vda-bolha--3 { width: 420px; height: 420px; left: 44%; top: 26%; background: #8b6cff; opacity: .3; animation-duration: 27s; animation-delay: -12s; }
.vda-espelho { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(29, 99, 198, .28) 0%, transparent 38%, transparent 62%, rgba(255, 111, 0, .16) 100%); }
@keyframes vda-flutuar { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -40px) scale(1.1); } 100% { transform: translate(-30px, 30px) scale(.94); } }

/* casca: marca à esquerda, cartão à direita (no celular, um embaixo do outro) */
.vda-casca {
  position: relative; z-index: 1; min-height: 100vh; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 56px; flex-wrap: wrap;
}
.vda-marca { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; animation: vda-sobe .8s cubic-bezier(.2, .7, .2, 1) both; }
.vda-logo { width: 176px; height: 96px; border-radius: 24px; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.vda-logo img { width: 140px; height: auto; display: block; }
.vda-local { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb57a; }
.vda-marca h1 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.vda-marca p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--vda-texto-2); }
.vda-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.vda-chips li {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--vda-borda);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vda-chips svg { flex: 0 0 auto; }

/* cartão de vidro */
.vda-cartao {
  position: relative; flex: 0 1 430px; min-width: 0; padding: 38px 34px 28px; border-radius: 28px; overflow: hidden;
  background: var(--vda-vidro); border: 1px solid var(--vda-borda);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 70px -30px rgba(0, 0, 0, .75);
  display: flex; flex-direction: column; gap: 18px;
  animation: vda-sobe .8s cubic-bezier(.2, .7, .2, 1) .12s both;
}
.vda-cartao::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .07) 100%); }
.vda-cartao::after { content: ""; position: absolute; top: -50%; left: -30%; width: 24%; height: 200%; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); transform: rotate(18deg) translateX(-260%); animation: vda-brilho 1.8s ease 1s both; }
@keyframes vda-brilho { to { transform: rotate(18deg) translateX(760%); } }
.vda-cartao > * { position: relative; z-index: 1; }
.vda-cartao h2 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.vda-cartao .vda-sub { margin: -10px 0 0; font-size: 14px; color: var(--vda-texto-2); }
.vda-cartao form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

.vda-campo { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--vda-texto-2); margin: 0; }
.vda-entrada {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--vda-borda); color: var(--vda-texto-2);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.vda-entrada:focus-within { border-color: rgba(120, 170, 255, .8); box-shadow: 0 0 0 4px rgba(61, 134, 240, .28); background: rgba(255, 255, 255, .1); }
.vda-entrada input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff;
  font: inherit; font-size: 16px; font-weight: 500;
}
.vda-entrada input::placeholder { color: rgba(220, 228, 245, .55); }
.vda-entrada input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease 0s; }
.vda-olho { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 10px; background: transparent; color: var(--vda-texto-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vda-olho:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.vda-dica { font-size: 12px; font-weight: 500; color: var(--vda-texto-2); }

.vda-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.vda-lembrar { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--vda-texto-2); cursor: pointer; font-weight: 500; }
.vda-lembrar input { width: 18px; height: 18px; accent-color: var(--vda-principal); }
.vda-link { color: #9ec3ff !important; font-weight: 600; text-decoration: none; }
.vda-link:hover { color: #fff !important; text-decoration: underline; }

.vda-botao {
  height: 54px; border: 0; border-radius: 14px; cursor: pointer; width: 100%;
  background: linear-gradient(135deg, #3d86f0, var(--vda-principal) 55%, #0d3b8e);
  color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 16px 30px -14px rgba(61, 134, 240, .9);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.vda-botao:hover { filter: brightness(1.08); box-shadow: 0 18px 34px -12px rgba(61, 134, 240, 1); }
.vda-botao:active { transform: scale(.98); }
.vda-botao[disabled] { opacity: .7; cursor: wait; }
.vda-giro { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: vda-girar .8s linear infinite; display: none; }
.vda-botao.carregando .vda-giro { display: inline-block; }
@keyframes vda-girar { to { transform: rotate(360deg); } }
.vda-rodape { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--vda-texto-2); }

.vda-aviso { padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; border: 1px solid; }
.vda-aviso ul { margin: 0; padding-left: 18px; }
.vda-aviso--erro { background: rgba(255, 122, 122, .14); border-color: rgba(255, 122, 122, .35); color: #ffd0d0; }
.vda-aviso--ok { background: rgba(95, 216, 174, .14); border-color: rgba(95, 216, 174, .35); color: #c3f3e1; }

/* força da senha e confirmação */
.vda-forca { display: flex; gap: 6px; }
.vda-forca span { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .3s ease; }
.vda-regras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 12px; color: var(--vda-texto-2); }
.vda-regras li { display: flex; align-items: center; gap: 6px; }
.vda-regras li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); flex: 0 0 auto; transition: background .2s ease; }
.vda-regras li.ok { color: #8be6c2; }
.vda-regras li.ok::before { background: #5fd8ae; }
.vda-igual { font-size: 12px; font-weight: 600; min-height: 16px; }

/* janela "Recuperar senha" no mesmo vidro */
body.vda .modal-content {
  background: rgba(14, 24, 52, .92); color: var(--vda-texto); border: 1px solid var(--vda-borda); border-radius: 24px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
body.vda .modal-header, body.vda .modal-footer { border-color: rgba(255, 255, 255, .1); }
body.vda .modal-title { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; }
body.vda .modal .close { color: #fff; text-shadow: none; opacity: .8; }
body.vda .modal label { color: var(--vda-texto-2); font-weight: 600; font-size: 13px; }
body.vda .modal .form-control { height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--vda-borda); color: #fff; }
body.vda .modal .form-control:focus { box-shadow: 0 0 0 4px rgba(61, 134, 240, .28); border-color: rgba(120, 170, 255, .8); }
body.vda .modal .btn { min-height: 46px; border-radius: 12px; font-weight: 600; padding: 0 18px; }
body.vda .modal .btn-info { background: linear-gradient(135deg, #3d86f0, #1d63c6); border: 0; }
body.vda .modal .btn-secondary { background: rgba(255, 255, 255, .08); border: 1px solid var(--vda-borda); color: #fff; }
body.vda .modal-backdrop.show { opacity: .55; }
body.vda .modal.fade .modal-dialog { transform: translateY(18px) scale(.96); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
body.vda .modal.show .modal-dialog { transform: none; }
body.vda .text-success { color: #8be6c2 !important; }
body.vda .text-danger { color: #ffb3b3 !important; }

@keyframes vda-sobe { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 860px) {
  .vda-casca { padding: 28px 18px 36px; gap: 26px; justify-content: center; align-content: center; }
  .vda-marca { flex-basis: 100%; align-items: center; text-align: center; gap: 14px; }
  .vda-marca p, .vda-chips, .vda-local { display: none; }
  .vda-marca h1 { font-size: 24px; }
  .vda-logo { width: 140px; height: 78px; border-radius: 20px; }
  .vda-logo img { width: 112px; }
  .vda-cartao { flex-basis: 100%; padding: 28px 20px 22px; border-radius: 24px; }
  .vda-cartao h2 { font-size: 26px; }
  .vda-bolha { filter: blur(70px); }
  .vda-bolha--1 { width: 340px; height: 340px; }
  .vda-bolha--2 { width: 300px; height: 300px; }
  .vda-bolha--3 { display: none; }
  body.vda .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; }
  body.vda .modal-content { border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  body.vda .modal.fade .modal-dialog { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .vda-bolha, .vda-marca, .vda-cartao, .vda-cartao::after { animation: none !important; }
}
