/* ===== Tokens (medidos na captura do original) ===== */
:root {
  --orange: #FF6B35;
  --orange-dark: #E85A24;
  --orange-hot: #FF4E20;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --ink: #31374a;
  --muted: #6e7891;
  --line: #e3e6ed;
  --paper: #f5f7fa;
  --label: #495057;
  --input-line: #ced4da;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}

/* ===== Estrutura ===== */
.auth { height: 100vh; height: 100dvh; overflow: hidden; display: flex; }

.auth-brand {
  flex: 1.15;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  color: #fff;
  background: linear-gradient(150deg, #2c3245 0%, #232838 55%, #1c2130 100%);
}
.auth-brand .glow, .auth-brand .disc { position: absolute; border-radius: 50%; pointer-events: none; }
.auth-brand .glow {
  width: 420px; height: 420px; top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(255,107,53,.18), rgba(255,107,53,0) 70%);
}
.auth-brand .disc { width: 300px; height: 300px; bottom: -110px; left: -80px; background: rgba(255,255,255,.03); }

.auth-wordmark { position: relative; z-index: 1; font-weight: 900; font-size: 25.6px; letter-spacing: -0.02em; line-height: 1.2; }
.auth-wordmark small { display: block; margin-top: 2px; font-weight: 600; font-size: 12.48px; letter-spacing: .01em; color: #aab2c5; }

.auth-slides { position: relative; z-index: 1; max-width: 480px; }
.auth-slide {
  position: absolute; inset: 0; visibility: hidden; opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.auth-slide.on { position: relative; visibility: visible; opacity: 1; transform: none; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 7.2px;
  margin-bottom: 16px; padding: 4.8px 13.6px;
  border-radius: 50px; background: rgba(255,107,53,.16); color: #FFA07A;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.auth-slide-title { margin: 0; font-size: 23.2px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.auth-slide-sub { margin: 12px 0 0; font-size: 15.2px; line-height: 1.5; color: #b8bfd0; }
.auth-dots { display: flex; gap: 6px; margin-top: 24px; }
.auth-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.22); cursor: pointer; transition: all .3s ease; }
.auth-dot.on { width: 24px; background: var(--orange); }

.auth-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 7.2px;
  padding: 7.2px 16px; border-radius: 50px;
  color: #dde2ec; text-decoration: none; font-size: 13.6px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: all .2s ease;
}
.auth-pill:hover { color: #fff; background: rgba(255,107,53,.18); border-color: rgba(255,107,53,.45); transform: translateY(-1px); }

.auth-side { flex: 1; display: flex; overflow-y: auto; padding: 32px 24px; }
.auth-card {
  margin: auto; width: 100%; max-width: 410px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; height: 46px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: #141414; }
.wordmark .mark { width: 34px; height: 34px; flex: none; }
.wordmark .ring {
  width: 33px; height: 33px; border-radius: 50%; position: relative; flex: none;
  background: conic-gradient(from 200deg, #C2185B, #FF4E20, #FFB020, #FF6B35, #C2185B);
}
.wordmark .ring::after { content: ''; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; top: 9px; left: 12px; }

.auth-subtitle { margin: 0 0 20px; text-align: center; font-size: 14.72px; color: var(--muted); }
.auth-field { margin-bottom: 14.4px; }
.auth-label { display: flex; align-items: center; gap: 8px; margin-bottom: 4.8px; font-weight: 700; font-size: 14.4px; color: var(--label); }
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%; padding: 9.6px 13.6px; border: 1px solid var(--input-line); border-radius: 10px;
  font: inherit; font-size: 15.2px; color: var(--ink); background: #fff;
  transition: all .15s ease-in-out;
}
.auth-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.14); }
.auth-input.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.auth-input.code { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 8px; }
.auth-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 6px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14.4px;
}
.auth-hint { margin-top: 4.8px; font-size: 12.48px; line-height: 1.4; color: var(--muted); }

.auth-alert { margin-bottom: 16px; padding: 10.4px 13.6px; border-radius: 10px; font-size: 13.6px; line-height: 1.4; }
.auth-alert.err { background: #fdecec; color: #9f2020; }
.auth-alert.ok { background: #eafaf0; color: #14713d; }

.auth-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 5.6px; padding: 10.4px 20px; border: 0; border-radius: 50px; cursor: pointer;
  background: linear-gradient(135deg, #FF6B35, #E85A24); color: #fff;
  font: inherit; font-weight: 700; font-size: 15.2px; transition: all .2s ease;
}
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,.3); }
.auth-btn:disabled { opacity: .75; cursor: default; }
.auth-btn.ghost {
  margin-top: 21px; padding: 8.8px 17.6px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); font-weight: 600; font-size: 14.4px;
}
.auth-btn.ghost:hover { background: var(--paper); box-shadow: none; }

.auth-foot { margin-top: 16px; text-align: center; font-size: 13.6px; }
.auth-foot a { color: var(--orange); text-decoration: none; font-weight: 600; cursor: pointer; }
.auth-foot a:hover { color: var(--orange-dark); }
.auth-foot a.muted { color: var(--muted); }
.auth-foot a.muted:hover { color: var(--orange); }

.auth-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 17.6px; }
.auth-step { width: 8px; height: 8px; border-radius: 50%; background: #dee2e6; transition: all .3s ease; }
.auth-step.on { width: 24px; border-radius: 4px; background: var(--orange); }
.auth-step.done { background: var(--green); }
.auth-resend { margin-top: 9.6px; text-align: center; font-size: 13.12px; }
.auth-resend a { color: var(--orange); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-resend a.off { color: #adb5bd; pointer-events: none; }

.auth-modal-back { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17,24,39,.55); }
.auth-modal { width: 100%; max-width: 420px; padding: 24px; border-radius: 14px; background: #fff; text-align: center; }
.auth-modal-check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #d4edda; color: var(--green); font-size: 24px; }
.auth-modal h5 { margin: 0 0 8px; font-size: 17.6px; font-weight: 800; }
.auth-cred { margin: 16px 0; padding: 16px; border: 1px solid #e9ecef; border-radius: 10px; background: var(--paper); }
.auth-cred small { display: block; margin-bottom: 2.4px; font-size: 12px; color: var(--muted); }
.auth-cred b { font-weight: 800; font-size: 16.8px; }
.auth-cred b.orange { color: var(--orange); }
.auth-tip { margin-bottom: 16px; padding: 12px; border-radius: 8px; background: #fff3cd; color: #856404; font-size: 13.12px; line-height: 1.45; }

.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Celular e tablet ===== */
@media (max-width: 900px) {
  .auth { flex-direction: column; height: auto; min-height: 100dvh; overflow: visible; }
  .auth-side { order: 1; overflow: visible; padding: 32px 16px 24px; align-items: flex-start; }
  .auth-brand { order: 2; flex: none; gap: 16px; padding: 24px 20px 28px; }
  .auth-brand .glow { width: 220px; height: 220px; top: -90px; right: -70px; }
  .auth-brand .disc { display: none; }
  .auth-wordmark { font-size: 20.8px; }
  .auth-wordmark small { font-size: 11.52px; }
  .auth-slides { max-width: none; margin-top: 12px; }
  .auth-slide-title { font-size: 16.8px; }
  .auth-slide-sub { margin-top: 6.4px; font-size: 13.6px; }
  .auth-dots { margin-top: 14.4px; }
  .auth-links { margin-top: 16px; }
  .auth-pill { padding: 5.6px 13.6px; font-size: 12.48px; }
  .auth-card { padding: 24px 20px; border-radius: 12px; }
  .auth-input { font-size: 16px; }
}
