/* ============================================================
   MENU ÁGIL — Auth (login / cadastro)
   ============================================================ */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Brand panel ---------- */
.auth__brand {
  background: var(--bg-navy);
  color: var(--on-navy);
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth__brand::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 420px at 12% 0%, rgba(37,99,235,.34), transparent 60%),
    radial-gradient(560px 380px at 100% 100%, rgba(22,163,74,.16), transparent 60%);
}
.auth__brand > * { position: relative; z-index: 1; }
.auth__brand .logo b { color: #fff; }
.auth__brand-mid { margin: 28px 0; }
.auth__brand h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.03em; line-height: 1.1; color: #fff;
  max-width: 16ch; text-wrap: balance;
}
.auth__brand .lead { color: var(--on-navy-2); font-size: 16px; margin-top: 16px; max-width: 42ch; line-height: 1.6; }
.auth__brand .checks { margin-top: 28px; }
.auth__brand .checks li { color: var(--on-navy); font-size: 15px; }
.auth__brand .checks b { color: #fff; }

/* mini live card */
.auth-card {
  margin-top: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-navy);
  border-radius: var(--r-md);
  padding: 16px 18px;
  backdrop-filter: blur(6px);
  max-width: 360px;
}
.auth-card .top { display: flex; align-items: center; justify-content: space-between; }
.auth-card .stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; }
.auth-card q { display: block; quotes: none; font-size: 14.5px; line-height: 1.55; color: var(--on-navy); margin: 12px 0 14px; }
.auth-card .who { display: flex; align-items: center; gap: 11px; }
.auth-card .who .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; flex: none; background: var(--primary); }
.auth-card .who .nm { font-weight: 700; font-size: 13.5px; color: #fff; }
.auth-card .who .ro { font-size: 12px; color: var(--on-navy-2); }

.auth__foot { margin-top: 30px; color: var(--on-navy-2); font-size: 13px; display: flex; gap: 20px; }
.auth__foot a { color: var(--on-navy-2); }
.auth__foot a:hover { color: #fff; }

/* onboarding steps (cadastro) */
.steps { display: grid; gap: 16px; margin-top: 30px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .sn {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-navy); color: #fff;
}
.step b { color: #fff; font-size: 15px; display: block; }
.step small { color: var(--on-navy-2); font-size: 13px; }

/* ---------- Form panel ---------- */
.auth__form { display: flex; flex-direction: column; padding: 32px 40px; overflow-y: auto; }
.auth__topbar { display: flex; align-items: center; justify-content: space-between; }
.auth__topbar .back { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.auth__topbar .back:hover { color: var(--ink); }
.auth__topbar .back svg { width: 15px; height: 15px; }
.auth__topbar .alt { font-size: 13.5px; color: var(--ink-3); }
.auth__topbar .alt a { color: var(--primary); font-weight: 700; }

.auth__logo-m { display: none; }

.auth__box { width: 100%; max-width: 408px; margin: auto; padding: 28px 0; }
.auth__box h1 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.auth__box .sub { font-size: 15px; margin-top: 10px; color: var(--ink-2); }

form { margin-top: 26px; display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 0 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input .lead { color: var(--ink-3); display: grid; place-items: center; flex: none; }
.input .lead svg { width: 18px; height: 18px; }
.input input, .input select {
  border: 0; outline: 0; font-family: inherit; font-size: 15px;
  padding: 13px 0; width: 100%; background: transparent; color: var(--ink);
}
.input select { cursor: pointer; }
.input input::placeholder { color: var(--ink-3); }
.input .toggle { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 5px; display: grid; place-items: center; flex: none; }
.input .toggle:hover { color: var(--ink-2); }
.input .toggle svg { width: 18px; height: 18px; }

/* strength bar */
.strength { display: flex; gap: 6px; margin-top: 2px; }
.strength i { height: 4px; flex: 1; border-radius: 999px; background: var(--bg-soft-2); transition: background .2s; }
.strength.s1 i:nth-child(1) { background: #ef4444; }
.strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.strength.s3 i:nth-child(-n+3) { background: #65a30d; }
.strength.s4 i { background: var(--green); }
.strength-label { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }

/* row helpers */
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .15s; flex: none; }
.check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .12s; }
.check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px var(--primary-soft); }
.link { color: var(--primary); font-weight: 700; font-size: 13.5px; }
.link:hover { text-decoration: underline; }

.btn--block { width: 100%; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn--social {
  width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: var(--sh-xs);
}
.btn--social:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn--social svg { width: 18px; height: 18px; }

.auth__alt-line { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 22px; }
.auth__alt-line a { color: var(--primary); font-weight: 700; }

.terms { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.terms a { color: var(--ink-2); text-decoration: underline; }

.trust-row { display: flex; align-items: center; gap: 16px; margin-top: 26px; color: var(--ink-3); font-size: 12.5px; flex-wrap: wrap; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__logo-m { display: inline-flex; }
  .auth__form { padding: 22px 22px 40px; }
  .auth__box { padding: 14px 0 0; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .auth__topbar .back span { display: none; }
}
