/* Recuperar senha (food-service/recupera_senha.html) - visual próprio, feito pro celular primeiro.
   Não usa o style.css das telas de login: lá as luzes decorativas ficavam por cima dos campos. */
:root {
  --rs-bg: #0b1120;
  --rs-card: rgba(15, 23, 42, .82);
  --rs-borda: rgba(148, 163, 184, .18);
  --rs-texto: #f1f5f9;
  --rs-suave: #94a3b8;
  --rs-campo: rgba(30, 41, 59, .9);
  --rs-campo-borda: rgba(148, 163, 184, .25);
  --rs-laranja: #ff5a1f;
  --rs-laranja-2: #ff8a3d;
  --rs-verde: #25d366;
  --rs-ok: #4ade80;
  --rs-erro: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--rs-texto);
  background: var(--rs-bg);
  overflow-x: hidden;
}

/* fundo: luzes suaves, sempre ATRÁS e sem receber toque */
.rs-fundo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(14, 165, 233, .22), transparent 70%),
    radial-gradient(55% 45% at 100% 100%, rgba(147, 51, 234, .25), transparent 70%),
    radial-gradient(40% 35% at 85% 10%, rgba(255, 90, 31, .14), transparent 70%),
    var(--rs-bg);
}
.rs-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .05;
}

.rs-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 26px;
  border-radius: 24px;
  background: var(--rs-card);
  border: 1px solid var(--rs-borda);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rs-entrar .45s ease both;
}
@keyframes rs-entrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rs-logo { display: block; width: 150px; max-width: 60%; margin: 0 auto 22px; }

.rs-icone {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 90, 31, .22), rgba(255, 138, 61, .1));
  border: 1px solid rgba(255, 138, 61, .35);
  color: var(--rs-laranja-2);
}
.rs-icone svg { width: 26px; height: 26px; }

.rs-titulo { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.rs-sub { text-align: center; color: var(--rs-suave); font-size: 14px; line-height: 1.5; margin: 6px 0 22px; }

/* abas Email / WhatsApp */
.rec-abas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px;
  border-radius: 14px; background: rgba(2, 6, 23, .55); border: 1px solid var(--rs-borda);
}
.rec-aba {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--rs-suave);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.rec-aba svg { width: 18px; height: 18px; flex: none; }
.rec-aba.ativa { background: rgba(255, 255, 255, .1); color: var(--rs-texto); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.rec-aba.ativa.whats { background: var(--rs-verde); color: #06351a; }

.rec-oculto { display: none !important; }

.rec-dica { color: var(--rs-suave); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.rec-dica strong { color: var(--rs-texto); }

/* campos */
.rs-campo { display: block; margin-bottom: 14px; }
.rs-rotulo { display: block; font-size: 13px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; }
.rs-entrada { position: relative; display: flex; align-items: center; }
.rs-entrada > svg {
  position: absolute; left: 14px; width: 18px; height: 18px; color: var(--rs-suave); pointer-events: none;
}
.rs-entrada input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 44px;
  border-radius: 14px;
  border: 1px solid var(--rs-campo-borda);
  background: var(--rs-campo);
  color: var(--rs-texto);
  font: inherit;
  font-size: 16px; /* 16px: o iPhone não dá zoom ao tocar */
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.rs-entrada input::placeholder { color: #64748b; }
.rs-entrada input:focus { border-color: var(--rs-laranja-2); box-shadow: 0 0 0 4px rgba(255, 138, 61, .18); }
.rs-entrada.com-olho input { padding-right: 50px; }
.rs-olho {
  position: absolute; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  display: grid; place-items: center; background: transparent; color: var(--rs-suave); cursor: pointer;
}
.rs-olho:hover { color: var(--rs-texto); background: rgba(255, 255, 255, .06); }
.rs-olho svg { width: 20px; height: 20px; }
.rs-olho .fechado { display: none; }
.rs-olho[aria-pressed="true"] .aberto { display: none; }
.rs-olho[aria-pressed="true"] .fechado { display: block; }

input.rec-codigo {
  padding: 0 14px;
  text-align: center;
  letter-spacing: .5em;
  font-size: 24px;
  font-weight: 800;
  min-height: 58px;
}

/* botões */
.btn-primary {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rs-laranja), var(--rs-laranja-2));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(255, 90, 31, .8);
  transition: transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
[data-painel="whatsapp"] .btn-primary { background: linear-gradient(135deg, #1fb855, var(--rs-verde)); box-shadow: 0 12px 28px -12px rgba(37, 211, 102, .7); color: #04220f; }

.rs-acoes-codigo { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; color: var(--rs-suave); }
.rec-link {
  border: 0; background: none; padding: 6px 2px; color: var(--rs-texto);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.rec-link:disabled { color: var(--rs-suave); text-decoration: none; cursor: default; }

/* mensagens */
.mensagem-status, .rec-msg { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4; }
.mensagem-status.success, .rec-msg.success { color: var(--rs-ok); }
.mensagem-status.error, .rec-msg.error { color: var(--rs-erro); }

.rs-rodape { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rs-borda); text-align: center; font-size: 14px; color: var(--rs-suave); }
.rs-voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--rs-laranja-2); font-weight: 700; text-decoration: none; }
.rs-voltar:hover { text-decoration: underline; }
.rs-voltar svg { width: 16px; height: 16px; }

@media (max-width: 420px) {
  body { padding: 16px 12px; align-items: flex-start; }
  .rs-card { padding: 26px 18px 20px; border-radius: 20px; margin-top: 8px; }
  .rs-titulo { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .rs-card { animation: none; } }
