/* ============================================================
   Cliente Bandeiras — páginas de Entrar e Cadastro
   Complementa styles.css (usa os mesmos tokens da marca).
   ============================================================ */

/* ---------- layout split (login) ---------- */
.auth-split { min-height: 100vh; display: flex; }
.auth-hero {
  flex: 1.05; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, #0146a8 100%);
  color: #fff; padding: 56px;
  display: none; flex-direction: column; justify-content: center;
}
@media (min-width: 992px) { .auth-hero { display: flex; } }
.auth-hero .logo-pill { background: #fff; border-radius: 16px; padding: 12px 16px; display: inline-block; box-shadow: var(--shadow); }
.auth-hero .logo-pill img { height: 40px; }
.auth-hero h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 26px 0 14px; max-width: 460px; }
.auth-hero h2 .hl { color: var(--yellow); }
.auth-hero p { color: #c5d6f2; font-size: 1.08rem; max-width: 430px; margin: 0 0 8px; }
.auth-hero .blob-y { top: -36px; right: -36px; width: 180px; height: 180px; opacity: .85; }
.auth-hero .blob-r { bottom: -24px; left: -24px; width: 120px; height: 120px; opacity: .85; }
.auth-hero .loyalty-card { max-width: 380px; margin-top: 40px; }

.auth-perks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #dbe7fb; }
.auth-perks .pico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px;
  background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.15rem;
}

/* ---------- painel do formulário ---------- */
.auth-panel {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 24px; position: relative; overflow: hidden;
}
.auth-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 360px at 100% 0%, var(--blue-soft), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, var(--yellow-soft), transparent 66%);
}
.auth-panel-inner { width: 100%; max-width: 440px; margin-inline: auto; }
.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink-soft); margin-bottom: 26px;
}
.auth-back:hover { color: var(--navy); }
.auth-logo-sm { display: inline-block; }
.auth-logo-sm img { height: 44px; width: auto; margin-bottom: 22px; }
@media (min-width: 992px) { .auth-logo-sm { display: none; } }
.auth-panel h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 16px 0 10px; color: var(--ink); }
.auth-panel h1 .hl { color: var(--red); }
.auth-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 28px; font-weight: 600; }

/* ---------- formulário ---------- */
.f-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 7px; }
.f-label .req { color: var(--red); }
.f-input {
  width: 100%; border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 1rem; font-family: var(--font-body); font-weight: 600;
  color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.f-input::placeholder { color: #9aa7bd; font-weight: 600; }
.f-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--blue-soft); }
.f-input.is-invalid { border-color: var(--red); }
.f-input.is-invalid:focus { box-shadow: 0 0 0 4px #ffe6e6; }
select.f-input { cursor: pointer; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2300337f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 42px; }
.f-err { color: var(--red-ink); font-size: .84rem; font-weight: 700; margin-top: 6px; }
.f-hint { color: var(--ink-soft); font-size: .84rem; font-weight: 600; margin-top: 6px; }
.f-group { margin-bottom: 20px; }

.f-icon-wrap { position: relative; }
.f-icon-wrap .f-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: #9aa7bd; padding: 4px;
}
.f-icon-wrap .f-eye:hover { color: var(--navy); }

.f-check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.f-check input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.f-check a { color: var(--red); font-weight: 800; }
.f-check a:hover { text-decoration: underline; }

.btn-block { width: 100%; }

/* alerta de erro no tom da marca */
.auth-alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: #ffe6e6; border: 2px solid #ffc9c9; color: #a31515;
  border-radius: var(--r-sm); padding: 14px 16px; font-weight: 700; font-size: .95rem;
  margin-bottom: 22px;
}
.auth-alert .aico { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.3; }
.auth-alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 600; }

.auth-foot { margin-top: 26px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.auth-foot a { color: var(--red); font-weight: 800; }
.auth-foot a:hover { text-decoration: underline; }

/* divisor "ou" */
.auth-divider { display: flex; align-items: center; gap: 14px; color: #9aa7bd; font-weight: 800; font-size: .85rem; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

/* ---------- página de cadastro ---------- */
.reg-page { max-width: var(--maxw); margin-inline: auto; padding: 28px 24px 90px; }
.reg-head { max-width: 640px; margin-bottom: 34px; }
.reg-head h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin: 18px 0 12px; color: var(--ink); }
.reg-head h1 .hl { color: var(--red); }
.reg-head p { color: var(--ink-soft); font-size: 1.12rem; margin: 0; font-weight: 600; }

.reg-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 980px) { .reg-grid { grid-template-columns: 1fr; } }

.reg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) { .reg-card { padding: 26px 20px; } }

.reg-section {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink);
  margin: 30px 0 18px;
}
.reg-section:first-child { margin-top: 0; }
.reg-section .rnum {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.05rem; color: #fff; background: var(--navy); box-shadow: var(--shadow-sm);
}
.reg-section.s2 .rnum { background: var(--red); }
.reg-section.s3 .rnum { background: var(--yellow); color: var(--navy); }
.reg-section.s4 .rnum { background: var(--blue); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.f-row .full { grid-column: 1 / -1; }

.consent-pill {
  background: var(--bg-tint); border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 15px 16px; margin-bottom: 12px; transition: border-color .2s;
}
.consent-pill:has(input:checked) { border-color: var(--yellow); background: var(--yellow-soft); }

/* medidor de força da senha */
.pwd-meter { margin-top: 8px; }
.pwd-meter-bar { height: 7px; border-radius: 100px; background: var(--line); overflow: hidden; }
.pwd-meter-fill { height: 100%; width: 0; border-radius: 100px; transition: width .3s ease, background .3s ease; }
.pwd-meter-label { font-size: .8rem; font-weight: 800; margin-top: 5px; color: var(--ink-soft); }

/* sidebar de vantagens do cadastro */
.reg-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 980px) { .reg-aside { position: static; } }
.aside-card {
  background: linear-gradient(150deg, var(--navy), #0146a8); color: #fff;
  border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.aside-card::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,192,0,.22); top: -60px; right: -40px; }
.aside-card h3 { font-size: 1.35rem; margin-bottom: 16px; position: relative; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.aside-card li { display: flex; gap: 10px; font-weight: 700; color: #dbe7fb; font-size: .98rem; }
.aside-card li::before { content: "✓"; color: var(--yellow); font-weight: 900; }
.aside-note {
  background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: var(--r);
  padding: 18px 20px; font-weight: 700; color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
}
.aside-note .nico { font-size: 1.4rem; line-height: 1.2; }
.aside-note small { display: block; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }

/* header simples das páginas auth */
.auth-topbar { position: static; }
.auth-topbar .nav { height: 76px; }
