/* ALFABETÔMETRO — telas de recuperação de senha ("Esqueci minha senha" /
   "Nova senha"). Padrão visual replicado do Sistema de Controle de Férias
   (cartão centralizado escuro+branco) a pedido do usuário — mantém as cores
   via variables.css em vez de copiar os valores hardcoded do outro projeto. */

* { box-sizing: border-box; }

body.pagina-recuperar-senha {
  margin: 0;
  font-family: var(--fonte-base);
  color: var(--cor-texto);
}

.rs-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(50rem 35rem at 105% 105%, rgba(22, 163, 74, 0.22), transparent 55%),
    linear-gradient(160deg, #060b17 0%, #0f1f3d 46%, #0a1730 78%, #060b17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.rs-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70rem 45rem at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.rs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.rs-card {
  background: var(--cor-superficie);
  border-radius: 24px;
  width: 100%;
  box-shadow:
    0 32px 80px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 100px -20px rgba(37, 99, 235, 0.35);
  overflow: hidden;
}

.rs-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria) 0%, #3b82f6 35%, var(--cor-sucesso) 100%);
}

.rs-logo {
  background: linear-gradient(160deg, #0c1830 0%, #16294f 100%);
  text-align: center;
  padding: 2.5rem 2.5rem 2rem;
}

.rs-logo-brasao {
  height: 92px;
  width: auto;
  margin: 0 auto 1.1rem;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.rs-tagline {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
}

.rs-body { padding: 2.25rem 2.75rem 0; }
.rs-welcome { text-align: center; margin-bottom: 1.75rem; }
.rs-title { font-size: 1.6rem; font-weight: 800; color: var(--cor-texto); letter-spacing: -0.01em; margin: 0; }
.rs-subtitle { font-size: 0.98rem; color: var(--cor-texto-suave); margin-top: 0.35rem; }

.rs-field-group { margin-bottom: 1.25rem; }
.rs-field-group-last { margin-bottom: 1.85rem; }
.rs-label { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.5rem; display: block; color: var(--cor-texto); }
.rs-field { position: relative; }
.rs-field-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.15s;
}
.rs-input {
  width: 100%;
  font-size: 1.02rem;
  font-family: var(--fonte-base);
  padding: 0.95rem 1.1rem 0.95rem 2.85rem;
  border: 1.5px solid var(--cor-borda);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--cor-texto);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.rs-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.rs-input:focus + .rs-field-icon { color: var(--cor-primaria); }

.rs-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-escura));
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.rs-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.65); }
.rs-submit:active { transform: translateY(0); }
.rs-submit i { font-size: 0.85rem; transition: transform 0.15s; }
.rs-submit:hover i { transform: translateX(3px); }

.rs-links { text-align: center; font-size: 0.875rem; margin-top: 1.25rem; padding-bottom: 2.25rem; }
.rs-links a { color: var(--cor-primaria); text-decoration: none; font-weight: 600; }
.rs-links a:hover { text-decoration: underline; }

.rs-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 1.5rem 2.75rem 2rem;
  margin: 0;
}

.rs-flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.rs-flash-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.rs-flash-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

@media (max-width: 480px) {
  .rs-page { align-items: flex-start; padding: 1.25rem 1rem; }
  .rs-logo { padding: 1.75rem 1.5rem 1.5rem; }
  .rs-logo-brasao { height: 64px; margin-bottom: 0.75rem; }
  .rs-tagline { font-size: 0.78rem; }
  .rs-body { padding: 1.5rem 1.5rem 0; }
  .rs-welcome { margin-bottom: 1.25rem; }
  .rs-title { font-size: 1.4rem; }
  .rs-field-group { margin-bottom: 0.9rem; }
  .rs-field-group-last { margin-bottom: 1.25rem; }
  .rs-copyright { padding: 1rem 1.5rem 1.5rem; }
}
