/* ==========================================================
   FOCINHOS & LAMBIDAS
   RECUPERAR SENHA — SPRINT G
   Arquivo: public-site/css/recuperar-senha.css
========================================================== */

:root {
  --recovery-primary: #ff5a1f;
  --recovery-primary-dark: #d9420f;
  --recovery-secondary: #10284b;
  --recovery-background: #f4f7fb;
  --recovery-surface: #ffffff;
  --recovery-text: #17243d;
  --recovery-muted: #667085;
  --recovery-border: #dfe7f1;
  --recovery-success: #198754;
  --recovery-danger: #dc3545;
  --recovery-shadow: 0 24px 60px rgba(15, 35, 70, 0.14);
  --recovery-radius: 28px;
  --recovery-transition: 200ms ease;
}

/* ==========================================================
   BASE
========================================================== */

body.recovery-page {
  min-height: 100vh;
  margin: 0;
  color: var(--recovery-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 90, 31, 0.10), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(45, 127, 249, 0.08), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, var(--recovery-background) 100%);
  font-family: "Poppins", sans-serif;
}

body.recovery-page *,
body.recovery-page *::before,
body.recovery-page *::after {
  box-sizing: border-box;
}

/* ==========================================================
   CONTAINER
========================================================== */

.recovery-shell {
  width: 100%;
  min-height: 100vh;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recovery-card {
  width: min(100%, 620px);
  padding: 42px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92)
    );
  border: 1px solid rgba(223, 231, 241, 0.95);
  border-radius: var(--recovery-radius);
  box-shadow: var(--recovery-shadow);
}

.recovery-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 90, 31, 0.14),
    transparent 70%
  );
  pointer-events: none;
}

.recovery-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -130px;
  bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(45, 127, 249, 0.10),
    transparent 70%
  );
  pointer-events: none;
}

.recovery-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   MARCA
========================================================== */

.recovery-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.recovery-brand > span {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(255, 90, 31, 0.16),
    rgba(255, 90, 31, 0.08)
  );
  color: var(--recovery-primary);
  font-size: 23px;
  border: 1px solid rgba(255, 90, 31, 0.14);
}

.recovery-brand div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.recovery-brand strong {
  color: var(--recovery-secondary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.recovery-brand small {
  margin-top: 3px;
  color: var(--recovery-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* ==========================================================
   CABEÇALHO
========================================================== */

.recovery-page .login-header {
  margin-bottom: 28px;
}

.recovery-page .login-header h1 {
  margin: 0;
  color: var(--recovery-secondary);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.recovery-page .login-header p {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--recovery-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================
   FORMULÁRIOS
========================================================== */

.recovery-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recovery-form[hidden] {
  display: none !important;
}

.recovery-form + .recovery-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--recovery-border);
}

.recovery-form label {
  margin-top: 2px;
  color: var(--recovery-secondary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

/* ==========================================================
   CAMPOS
========================================================== */

.recovery-page .input-group-custom {
  width: 100%;
  min-height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  overflow: hidden;
  background: var(--recovery-surface);
  border: 1px solid var(--recovery-border);
  border-radius: 16px;
  box-shadow: none;
  transition:
    border-color var(--recovery-transition),
    box-shadow var(--recovery-transition),
    background-color var(--recovery-transition);
}

.recovery-page .input-group-custom:hover {
  border-color: rgba(255, 90, 31, 0.36);
}

.recovery-page .input-group-custom:focus-within {
  border-color: var(--recovery-primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.11);
}

.recovery-page .input-group-custom > i {
  flex: 0 0 auto;
  color: #8b99aa;
  font-size: 18px;
  transition: color var(--recovery-transition);
}

.recovery-page .input-group-custom:focus-within > i {
  color: var(--recovery-primary);
}

.recovery-page .input-group-custom input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--recovery-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.recovery-page .input-group-custom input::placeholder {
  color: #98a4b3;
  opacity: 1;
}

.recovery-page .input-group-custom.readonly-field {
  background: #f8fafc;
}

.recovery-page .input-group-custom.readonly-field input {
  color: #64748b;
  cursor: default;
}

/* ==========================================================
   BOTÃO PRINCIPAL
========================================================== */

.recovery-page .recovery-primary,
.recovery-page .btn-login {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--recovery-primary),
    var(--recovery-primary-dark)
  );
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.24);
  transition:
    transform var(--recovery-transition),
    box-shadow var(--recovery-transition),
    opacity var(--recovery-transition);
}

.recovery-page .recovery-primary::before,
.recovery-page .btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: skewX(-20deg);
}

.recovery-page .recovery-primary:hover,
.recovery-page .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 90, 31, 0.30);
}

.recovery-page .recovery-primary:hover::before,
.recovery-page .btn-login:hover::before {
  animation: recovery-shine 700ms ease forwards;
}

.recovery-page .recovery-primary:active,
.recovery-page .btn-login:active {
  transform: translateY(0);
}

.recovery-page .recovery-primary:disabled,
.recovery-page .btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes recovery-shine {
  from {
    left: -120%;
  }

  to {
    left: 140%;
  }
}

/* ==========================================================
   VOLTAR AO LOGIN
========================================================== */

.recovery-back {
  min-height: 44px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--recovery-secondary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
  transition:
    color var(--recovery-transition),
    background-color var(--recovery-transition);
}

.recovery-back:hover {
  color: var(--recovery-primary-dark);
  background: rgba(255, 90, 31, 0.06);
}

/* ==========================================================
   REGRAS DA SENHA
========================================================== */

.password-rule {
  margin: -2px 0 2px;
  color: var(--recovery-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================
   ESTADOS DE VALIDAÇÃO
========================================================== */

.recovery-page .input-group-custom.is-invalid,
.recovery-page .input-group-custom:has(
  input[aria-invalid="true"]
) {
  border-color: var(--recovery-danger);
}

.recovery-page .input-group-custom.is-invalid:focus-within,
.recovery-page .input-group-custom:has(
  input[aria-invalid="true"]
):focus-within {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}

.recovery-page .input-group-custom.is-valid {
  border-color: rgba(25, 135, 84, 0.52);
}

/* ==========================================================
   ACESSIBILIDADE
========================================================== */

.recovery-page button:focus-visible,
.recovery-page a:focus-visible,
.recovery-page input:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.26);
  outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVIDADE
========================================================== */

@media (max-width: 768px) {
  .recovery-shell {
    padding: 20px;
    align-items: flex-start;
  }

  .recovery-card {
    width: 100%;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .recovery-page .login-header h1 {
    font-size: 30px;
  }

  .recovery-page .login-header p {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .recovery-shell {
    padding: 0;
  }

  .recovery-card {
    min-height: 100vh;
    padding: 24px 18px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .recovery-brand {
    margin-bottom: 24px;
  }

  .recovery-brand > span {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .recovery-brand strong {
    font-size: 16px;
  }

  .recovery-page .login-header {
    margin-bottom: 24px;
  }

  .recovery-page .login-header h1 {
    font-size: 27px;
  }

  .recovery-page .input-group-custom {
    min-height: 56px;
    border-radius: 14px;
  }

  .recovery-page .input-group-custom input {
    height: 54px;
    font-size: 16px;
  }

  .recovery-page .recovery-primary,
  .recovery-page .btn-login {
    min-height: 56px;
    border-radius: 14px;
  }
}

/* ==========================================================
   REDUÇÃO DE MOVIMENTO
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .recovery-page *,
  .recovery-page *::before,
  .recovery-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
