body {
  height: 100vh;
  overflow: hidden;
}

/* ─── WRAPPER ─────────────────────────────────────────── */
.auth-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ─── PAINEIS ─────────────────────────────────────────── */
.panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform var(--anim);
  will-change: transform;
}

/* Formulário: começa na esquerda */
.form-panel {
  left: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  z-index: 2;
}

/* Info: começa na direita */
.info-panel {
  left: 50%;
  background: linear-gradient(145deg, #6366f1 0%, #4338ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/*
  Modo CADASTRO: os painéis trocam de lado.
  - form-panel vai para a direita  (+100% da sua largura = +50vw)
  - info-panel vai para a esquerda (-100% da sua largura = -50vw)
*/
.auth-wrap.register .form-panel {
  transform: translateX(100%);
}
.auth-wrap.register .info-panel {
  transform: translateX(-100%);
}

/* ─── TOGGLE PILL ─────────────────────────────────────── */
.toggle-pill {
  display: flex;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 40px;
  width: 260px;
  flex-shrink: 0;
}

.pill-btn {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.pill-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ─── FORMULÁRIOS ─────────────────────────────────────── */
.auth-form {
  width: 100%;
  max-width: 360px;
}

.auth-form.hidden {
  display: none;
}

.auth-form h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

/* ─── CAMPOS ──────────────────────────────────────────── */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-box input {
  width: 100%;
  padding: 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.input-box input::placeholder {
  color: #c4c7ce;
}

/* ícone da esquerda */
.fi {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #adb5bd;
  pointer-events: none;
  flex-shrink: 0;
}

/* botão olho */
.eye-btn {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #adb5bd;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.eye-btn:hover {
  color: var(--primary);
}

.eye-icon {
  width: 17px;
  height: 17px;
}

/* ─── LINHA DE OPÇÕES ─────────────────────────────────── */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 24px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.link-text {
  font-size: 0.83rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.link-text:hover {
  opacity: 0.72;
}

/* ─── BOTÃO SUBMIT ────────────────────────────────────── */
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.975rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ─── RODAPÉ DO FORM ──────────────────────────────────── */
.switch-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ─── PAINEL DE INFO — estrutura ─────────────────────── */
.info-panel {
  overflow: hidden; /* corta o avião nas bordas */
}

/* ─── AVIÃO ANIMADO ───────────────────────────────────── */
.plane-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.plane-anim {
  position: absolute;
  top: 22%;
  left: 0;
  display: flex;
  align-items: center;
  animation: plane-cross 15s linear infinite;
}

@keyframes plane-cross {
  0%   { transform: translate(-100px,  35px); opacity: 0; }
  7%   { opacity: 0.88; }
  93%  { opacity: 0.88; }
  100% { transform: translate(800px,  -20px); opacity: 0; }
}

.plane-trail {
  width: 88px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55));
  flex-shrink: 0;
}

.plane-icon {
  width: 44px;
  height: 28px;
  flex-shrink: 0;
}

/* ─── CIDADE NOTURNA ──────────────────────────────────── */
.city-night {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.city-night svg {
  width: 100%;
  height: 120%;
}

/* ─── SLIDES DE CONTEÚDO ──────────────────────────────── */
.info-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 44px 260px;
  color: var(--white);
}

.info-slide {
  text-align: center;
  max-width: 340px;
}

.info-slide.hidden {
  display: none;
}

.slide-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.slide-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  display: block;
}

.info-slide h3 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.info-slide p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.78;
}

/* ── Erros de campo ─────────────────────────────────────────────────────── */

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 5px;
  padding-left: 2px;
}

.field-error.hidden { display: none; }

.input-box.error input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ── Alerta geral do formulário ─────────────────────────────────────────── */

.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: #b91c1c;
}

.form-alert.hidden { display: none; }

.form-alert svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #ef4444;
}

.form-alert .alert-text { line-height: 1.4; }

/* ── Botão desabilitado durante loading ─────────────────────────────────── */

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
