/* Login do site (ataai.app/entrar), v1.17: cartão dividido. À esquerda o formulário
   sobre um degradê suave (cinza claro para o azul da Ata); à direita uma cena da
   Ata: uma chamada com legenda virando ata, agenda da semana e tarefas.
   Carregado depois de app.css; ids e classes ap- continuam os do js/entrar.js. */

.en-page {
  --page: #e6ebf3;
  --ink: #12151f; --ink-soft: #3a3f4b; --muted: #5b6275; --line: #cfd7e6;
  --blue: #2f6df0; --blue-deep: #1f55cc; --blue-ink: #0b2a6b; --blue-weak: #dfe8ff;
  --field: rgba(255, 255, 255, .86);
  min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 28px;
  background: var(--page); color: var(--ink);
  font-family: "General Sans", "Segoe UI", system-ui, sans-serif;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- cartão ---------- */
.en-shell {
  position: relative; width: 100%; max-width: 1240px; min-height: min(760px, calc(100vh - 56px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 20px; padding: 20px;
  border-radius: 40px;
  background: linear-gradient(168deg, #f4f6fa 0%, #eef2f8 42%, #dfe8ff 100%);
  box-shadow: 0 50px 90px -50px rgba(11, 42, 107, .45), 0 1px 0 rgba(255, 255, 255, .8) inset;
}

/* ---------- formulário ---------- */
.en-form-side { display: flex; flex-direction: column; padding: 22px 28px 14px; min-width: 0; }
.en-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.en-brand {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 10px; border-radius: 999px;
  border: 1.5px solid #9aa3b5; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -.01em;
}
.en-brand img { width: 26px; height: 26px; border-radius: 8px; }
.en-brand:hover { border-color: var(--blue); }
.en-install { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.en-install:hover { color: var(--blue); }

.en-form-wrap { width: 100%; max-width: 392px; margin: auto; padding: 36px 0 28px; }
.en-form-wrap h1 { margin: 0; text-align: center; font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.en-sub { margin: 10px auto 30px; text-align: center; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 330px; text-wrap: balance; }

#ap-form { display: flex; flex-direction: column; gap: 16px; }
.en-field { display: flex; flex-direction: column; gap: 7px; }
.en-field label, .en-label-row label { padding-left: 22px; font-size: 13px; font-weight: 500; color: var(--muted); }
.en-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.en-forgot { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); padding-right: 6px; }
.en-forgot:hover { color: var(--blue); }
.en-field input {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--field); font: inherit; font-size: 15px; color: var(--ink); outline: none;
  box-shadow: 0 1px 2px rgba(18, 21, 31, .04); transition: border-color .15s, box-shadow .15s, background .15s;
}
.en-field input::placeholder { color: #8b93a6; }
.en-field input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 109, 240, .16); }
.en-pass { position: relative; }
.en-pass input { padding-right: 58px; }
.en-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.en-eye:hover { background: rgba(18, 21, 31, .06); color: var(--ink); }
.en-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.en-eye svg { width: 19px; height: 19px; }
.en-eye .i-ocultar, .en-eye.on .i-ver { display: none; }
.en-eye.on .i-ocultar { display: block; }
.en-form-side .ap-hint { margin: -6px 0 0 22px; font-size: 12.5px; color: var(--muted); }
.en-form-side .ap-msg { margin: 0; border-radius: 16px; }

.en-primary {
  width: 100%; min-height: 58px; margin-top: 8px; border-radius: 999px; border: 0; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #3d78f3 0%, var(--blue) 100%);
  box-shadow: 0 16px 30px -16px rgba(47, 109, 240, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.en-primary:hover { background: linear-gradient(180deg, #3470ee 0%, var(--blue-deep) 100%); }
.en-primary:focus-visible, .en-google:focus-visible, .en-brand:focus-visible, .en-close:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.en-primary.loading::after { border-color: #fff; border-right-color: transparent; }

.en-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: 12.5px; }
.en-or::before, .en-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.en-google {
  width: 100%; min-height: 54px; border-radius: 999px; background: transparent; border: 1.5px solid #aab3c4;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.en-google:hover { background: rgba(255, 255, 255, .6); border-color: #7f8aa0; }

.en-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.en-foot p { margin: 0; }
.en-switch .ap-link { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.en-legal a { color: var(--ink-soft); text-underline-offset: 3px; }

/* ---------- cena (decorativa) ---------- */
.en-scene {
  position: relative; overflow: hidden; border-radius: 30px; min-height: 560px;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(125, 180, 255, .55) 0%, rgba(125, 180, 255, 0) 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(91, 140, 255, .55) 0%, rgba(91, 140, 255, 0) 60%),
    linear-gradient(160deg, #0b2a6b 0%, #1f55cc 58%, #3d78f3 100%);
  color: #fff; font-size: 13px;
}
/* recorte do canto com o botão de voltar, como na referência */
.en-close {
  position: absolute; top: 20px; right: 20px; z-index: 3; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: #eef2f8; box-shadow: 0 0 0 10px #eef2f8;
}
.en-close span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 16px -8px rgba(11, 42, 107, .4); }
.en-close svg { width: 20px; height: 20px; }
.en-close:hover { color: var(--blue); }

.sc-call {
  position: absolute; left: 8%; right: 15%; top: 15%; padding: 14px; border-radius: 22px;
  background: rgba(8, 20, 52, .55); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
}
.sc-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; margin: 2px 4px 12px; }
.sc-top em { margin-left: auto; font-style: normal; font-weight: 500; opacity: .7; }
.sc-rec { width: 8px; height: 8px; border-radius: 50%; background: #5ee0a0; box-shadow: 0 0 0 4px rgba(94, 224, 160, .2); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-tile { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.sc-tile b { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; font-weight: 500; opacity: .9; }
.t1 { background: linear-gradient(140deg, #2d4f9e, #3f6fd6); }
.t2 { background: linear-gradient(140deg, #334a7a, #4d6aa8); }
.t3 { background: linear-gradient(140deg, #274c86, #3a86c9); }
.t4 { background: linear-gradient(140deg, #3b3f7e, #5a5fc0); }
.sc-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .92); color: var(--blue-ink); }
.t1 .sc-av { box-shadow: 0 0 0 3px #7db4ff; }
.sc-cc { margin: 12px 4px 2px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.4; }
.sc-cc b { color: #9cc5ff; margin-right: 6px; font-weight: 600; }

.sc-card { position: absolute; border-radius: 18px; padding: 14px 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .55); }
.sc-card strong { display: block; font-size: 14px; font-weight: 600; }
.sc-ready { top: 5%; left: 6%; width: 236px; background: #dfe8ff; }
.sc-ready span:last-child { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-soft); }
.sc-dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

.sc-week {
  position: absolute; right: 5%; bottom: 23%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px 10px;
  border-radius: 18px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px);
}
.sc-week div { display: grid; justify-items: center; gap: 4px; padding: 4px 6px; border-radius: 12px; }
.sc-week i { font-style: normal; font-size: 11px; opacity: .8; }
.sc-week b { font-size: 18px; font-weight: 500; }
.sc-week .on { background: #fff; color: var(--blue-ink); }

.sc-tasks { left: 6%; bottom: 5%; width: 250px; }
.sc-tasks ul { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 7px; }
.sc-tasks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.sc-tasks em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.sc-chk { flex: none; width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid #a8b2c6; }
.sc-chk.ok { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sc-people { display: flex; }
.sc-people span { width: 28px; height: 28px; margin-right: -7px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff; border: 2px solid #fff; }
.p1 { background: #2f6df0; } .p2 { background: #0b2a6b; } .p3 { background: #3a86c9; } .p4 { background: #8b93a6; }

.sc-claim { position: absolute; left: calc(6% + 270px); right: 6%; bottom: 6%; margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }

/* ---------- movimento leve ---------- */
@media (prefers-reduced-motion: no-preference) {
  .en-shell { animation: en-sobe .5s cubic-bezier(.2, .8, .2, 1) both; }
  .sc-ready { animation: en-flutua 6s ease-in-out infinite; }
  .sc-tasks { animation: en-flutua 7s ease-in-out 1s infinite; }
  @keyframes en-sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes en-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  .sc-week { right: 4%; bottom: 25%; }
  .sc-claim { display: none; }
  .sc-week b { font-size: 16px; }
}
@media (max-width: 900px) {
  .en-page { padding: 12px; place-items: start center; }
  .en-shell { grid-template-columns: 1fr; min-height: calc(100vh - 24px); border-radius: 28px; padding: 12px; }
  .en-scene, .en-close { display: none; }
  .en-form-side { padding: 14px 10px 10px; }
  .en-form-wrap { padding: 28px 0 22px; }
  .en-form-wrap h1 { font-size: 28px; }
  .en-foot { justify-content: center; text-align: center; }
}
