/* Drya — sign-in page (Figma: "Web — Entrar (vídeo real)", approved 2026-09-24).
 *
 * Full-bleed video, a shade for legibility, the glass sign-in card on the
 * right, the headline bottom-left and a one-line footer along the bottom.
 * Dark by design regardless of the dashboard theme: it sits on the video.
 */

:root {
  --ink: #eaecf7;
  --soft: #c9d2df;
  --mid: #a3aec2;
  --faint: #8a95ab;
  --accent: #0e9e96;
  --accent-hover: #0b8780;
  --glow: #1fc8bc;
  --night: #05070b;
  --error: #ffb4a8;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---- backdrop ------------------------------------------------------------ */

.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;   /* keep the orb in frame as the window narrows */
  z-index: 0;
  background: var(--night) url('media/entrada-poster.jpg') 30% 50% / cover no-repeat;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(5, 7, 11, 0) 45%, rgba(5, 7, 11, .7) 100%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0) 55%, rgba(5, 7, 11, .75) 100%);
}

.top, .stage, .foot { position: relative; z-index: 2; }

/* ---- top bar ------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 84px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.8px;
  line-height: 1;
}

.wordmark__accent { color: var(--glow); }

.wordmark__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
}

.top__nav {
  margin-left: auto; /* on its own on the right when the page has no wordmark */ display: flex; align-items: center; gap: 28px; }

.top__link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
}
.top__link:hover { opacity: 1; }

.top__trial {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #0b0f18;
  background: #fff;
  padding: 11px 20px;
  border-radius: 999px;
}
.top__trial:hover { background: #e6f6f4; }

/* ---- main ---------------------------------------------------------------- */

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: end;
  gap: 48px;
  padding: 24px 96px 36px 56px;
}

/* The headline is a full sentence now (2026-09-28), longer than the old two
   short claims: a little wider, a touch smaller at the top end, and balanced
   so its lines come out even instead of leaving one word alone. */
/* The block is as wide as the headline's longest line, and the line under it
   never wider: four lines that zigzag short-long-short-longest read as a mess
   (Monica, 2026-09-28). The subline breaks at the pause after "A partir de
   agora", which makes its two lines nearly the same length. */
.hero { align-self: end; max-width: 1000px; width: fit-content; }
/* Each phrase keeps together: the line breaks at the comma, where the sentence
   breathes, and a phrase wraps inside itself only when the screen is narrow,
   evenly, so no word is left alone on its last line. */
.hero__line { display: block; text-wrap: balance; }

.hero h1 {
  margin: 0 0 14px;
  /* Sized to the column beside the card (about the screen width minus 600px),
     so "em qualquer dia e a qualquer hora." always fits on one line and the
     block keeps its shape: 50px on wide screens, about 41px at 1280px. */
  font-size: clamp(32px, calc(6.1vw - 37px), 50px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
}

.hero p {
  margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; font-weight: 500; color: var(--soft);
  /* Takes the headline's width without widening it. */
  width: 0; min-width: 100%;
}

.card {
  align-self: center;
  background: rgba(11, 15, 24, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 32px;
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}

.card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }

.card__lead { margin: 0 0 18px; font-size: 14px; color: var(--mid); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.field span { font-size: 13px; font-weight: 500; color: var(--mid); }

.field input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: 2px solid var(--glow); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.card__error { margin: -4px 0 14px; font-size: 13px; color: var(--error); }

.card__submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.card__submit:hover { background: var(--accent-hover); }
.card__submit:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.card__submit[disabled] { opacity: .6; cursor: progress; }

.card__help, .card__trial, .card__warning { margin: 16px 0 0; font-size: 13px; }
.card__help { color: var(--mid); }
.card__trial a { color: var(--glow); font-weight: 500; text-decoration: none; }
.card__trial a:hover { text-decoration: underline; }
.card__warning { font-size: 12px; color: var(--faint); }

/* ---- footer -------------------------------------------------------------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 56px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: var(--soft);
}

.foot__left { display: flex; gap: 20px; align-items: center; opacity: .8; }
.foot__left a { text-decoration: none; }
.foot__left a:hover { text-decoration: underline; }

.foot__social { display: flex; gap: 22px; }
.foot__social a { color: #fff; opacity: .85; display: flex; }
.foot__social a:hover { opacity: 1; }

/* ---- narrow windows: stack, card first ------------------------------------ */

@media (max-width: 900px) {
  .top { padding: 0 20px; }
  .stage { grid-template-columns: 1fr; padding: 16px 20px 28px; align-items: start; }
  .card { order: -1; }
  .hero h1 { font-size: 32px; }
  .foot { flex-direction: column; justify-content: center; height: auto; padding: 16px 20px; }
  .foot__left { flex-direction: column; gap: 6px; text-align: center; }
}
