/**
 * Estilos UI recuperación de contraseña (RECUPERACION_PASSWORD_B).
 * Depende de theme.css.php / tokens.semantic.css (--brand-*, --bg, --surface, --primary).
 */

.rpw-page {
  background: var(--bg, #f8f9fa);
  min-height: 100%;
}

.rpw-card {
  max-width: 440px;
  width: 100%;
  background: var(--surface, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-500, var(--primary, #136904)) 16%, var(--border, #dee2e6));
  border-radius: 12px;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.06);
}

.rpw-card .card-body {
  padding: 1.5rem 1.35rem;
}

.rpw-title {
  color: var(--brand-500, var(--primary, #136904));
  font-weight: 650;
}

/* Estado error: reutiliza token danger del tema / Bootstrap */
.rpw-title-danger,
.rpw-panel-result.rpw-panel-error .rpw-title {
  color: var(--danger-500, var(--danger, #dc3545));
}

.rpw-panel-result.rpw-panel-error {
  border-top: 3px solid var(--danger-500, var(--danger, #dc3545));
  padding-top: 0.35rem;
}

.rpw-lead {
  color: var(--text-700, #6c757d);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rpw-label {
  color: var(--brand-600, var(--secondary, var(--brand-500)));
  font-weight: 600;
}

.rpw-feedback {
  min-height: 1.25rem;
  font-size: 0.875rem;
}

.rpw-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rpw-actions .btn {
  width: 100%;
}

.rpw-panel-result {
  text-align: center;
}

.rpw-panel-result .rpw-title {
  margin-bottom: 0.75rem;
}

.rpw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.rpw-toggle-pass {
  border-color: var(--brand-500, var(--primary));
  color: var(--brand-500, var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.rpw-toggle-pass .rpw-icon-eye,
.rpw-toggle-pass .rpw-icon-eye-off {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  pointer-events: none;
}

.rpw-toggle-pass .rpw-icon-eye-off {
  display: none;
}

.rpw-toggle-pass.is-visible .rpw-icon-eye {
  display: none;
}

.rpw-toggle-pass.is-visible .rpw-icon-eye-off {
  display: block;
}

.rpw-toggle-pass:hover,
.rpw-toggle-pass:focus-visible {
  background: color-mix(in srgb, var(--brand-500, var(--primary)) 10%, var(--surface, #fff));
  color: var(--brand-600, var(--secondary, var(--brand-500)));
  border-color: var(--brand-600, var(--secondary, var(--brand-500)));
}

.btn-primary:focus-visible,
.btn-outline-primary:focus-visible,
.form-control:focus-visible,
.rpw-toggle-pass:focus-visible {
  outline: 2px solid var(--brand-500, var(--primary));
  outline-offset: 2px;
}

@media (min-width: 576px) {
  .rpw-card .card-body {
    padding: 1.75rem 1.75rem;
  }

  .rpw-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .rpw-actions .btn {
    width: auto;
    min-width: 11rem;
  }
}

@media (max-width: 575.98px) {
  .rpw-main {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .rpw-card {
    border-radius: 10px;
  }
}
