/* =========================================================
   WIRTZ MAYORISTA · RECUPERAR CONTRASEÑA
   ========================================================= */

:root {
  --recover-bg: #f4f4f4;
  --recover-surface: #ffffff;

  --recover-text: #111111;
  --recover-text-soft: #606060;
  --recover-text-muted: #8a8a8a;

  --recover-line: #dddddd;
  --recover-line-soft: #ececec;

  --recover-accent: #e51d2a;

  --recover-danger: #c71d28;
  --recover-danger-bg: #fff4f5;
  --recover-danger-line: #f0c9cd;

  --recover-success: #176a3a;
  --recover-success-bg: #f2faf5;
  --recover-success-line: #cbe5d4;

  --recover-radius-sm: 8px;
  --recover-radius-md: 12px;
  --recover-radius-lg: 18px;

  --recover-shadow:
    0 24px 70px rgba(0, 0, 0, 0.08);

  --recover-transition:
    160ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--recover-bg);
}

body {
  min-height: 100vh;
  margin: 0;

  font-family:
    "DM Sans",
    Arial,
    sans-serif;

  background: var(--recover-bg);
  color: var(--recover-text);

  -webkit-font-smoothing:
    antialiased;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.recover-page {
  min-height: 100vh;
  padding: 28px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.recover-card {
  width: min(760px, 100%);

  overflow: hidden;

  border: 1px solid var(--recover-line);
  border-radius: var(--recover-radius-lg);

  background: var(--recover-surface);

  box-shadow: var(--recover-shadow);
}

/* =========================================================
   HEADER
   ========================================================= */

.recover-header {
  min-height: 88px;
  padding: 18px 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border-bottom: 1px solid var(--recover-line-soft);
}

.recover-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recover-brand-logo {
  min-width: 86px;
  height: 44px;

  padding: 7px 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  background: #111111;
  color: #ffffff;
}

.recover-brand-logo span {
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -1px;
}

.recover-brand-logo small {
  margin-top: 2px;

  font-size: 6px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.recover-brand-divider {
  width: 1px;
  height: 32px;

  background: var(--recover-line);
}

.recover-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recover-brand-text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.recover-brand-text span {
  font-size: 11px;
  color: var(--recover-text-muted);
}

.recover-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-size: 12px;
  font-weight: 700;

  color: var(--recover-text-soft);

  transition:
    color var(--recover-transition),
    transform var(--recover-transition);
}

.recover-back:hover {
  color: var(--recover-text);
  transform: translateX(-2px);
}

.recover-back svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.recover-content {
  width: min(470px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 52px;

  text-align: center;
}

.recover-icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 22px;

  display: grid;
  place-items: center;

  border: 1px solid var(--recover-line);
  border-radius: 50%;

  background: #fafafa;
}

.recover-icon svg {
  width: 25px;
  height: 25px;
}

.recover-kicker {
  display: block;
  margin-bottom: 12px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;

  color: var(--recover-accent);
}

.recover-content h1 {
  margin: 0;

  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.6px;
}

.recover-description {
  max-width: 430px;
  margin: 16px auto 0;

  font-size: 14px;
  line-height: 1.65;

  color: var(--recover-text-soft);
}

/* =========================================================
   ALERTA
   ========================================================= */

.recover-alert {
  margin-top: 26px;
  padding: 14px;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  border: 1px solid var(--recover-danger-line);
  border-radius: var(--recover-radius-md);

  background: var(--recover-danger-bg);
  color: var(--recover-danger);

  text-align: left;
}

.recover-alert-icon {
  width: 28px;
  height: 28px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;
}

.recover-alert-icon svg {
  width: 18px;
  height: 18px;
}

.recover-alert > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recover-alert strong {
  font-size: 13px;
  font-weight: 800;
}

.recover-alert span {
  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.recover-form {
  margin-top: 30px;

  display: grid;
  gap: 20px;

  text-align: left;
}

.recover-field {
  display: grid;
  gap: 8px;
}

.recover-field label {
  font-size: 13px;
  font-weight: 700;
}

.recover-input-wrapper {
  position: relative;
}

.recover-input-wrapper input {
  width: 100%;
  height: 52px;

  padding:
    0
    16px
    0
    46px;

  border: 1px solid var(--recover-line);
  border-radius: var(--recover-radius-sm);

  outline: none;

  background: #ffffff;
  color: var(--recover-text);

  font-size: 14px;

  transition:
    border-color var(--recover-transition),
    box-shadow var(--recover-transition),
    background-color var(--recover-transition);
}

.recover-input-wrapper input::placeholder {
  color: #a0a0a0;
}

.recover-input-wrapper input:hover {
  border-color: #c4c4c4;
}

.recover-input-wrapper input:focus {
  border-color: #858585;

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.04);
}

.recover-input-wrapper input.is-invalid {
  border-color: var(--recover-danger);

  background: var(--recover-danger-bg);
}

.recover-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;

  width: 18px;
  height: 18px;

  transform: translateY(-50%);

  color: #858585;

  pointer-events: none;
}

.recover-field-error {
  min-height: 16px;

  font-size: 11px;
  font-weight: 600;

  color: var(--recover-danger);
}

.recover-submit {
  width: 100%;
  height: 54px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: var(--recover-radius-sm);

  background: #111111;
  color: #ffffff;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background-color var(--recover-transition),
    transform var(--recover-transition),
    opacity var(--recover-transition);
}

.recover-submit:hover:not(:disabled) {
  background: #282828;
}

.recover-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.recover-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.recover-submit svg {
  width: 18px;
  height: 18px;
}

.recover-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.recover-spinner {
  width: 16px;
  height: 16px;

  display: inline-block;

  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation:
    recover-spin 700ms linear infinite;
}

@keyframes recover-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   ÉXITO
   ========================================================= */

.recover-success {
  margin-top: 30px;
  padding: 28px;

  border: 1px solid var(--recover-success-line);
  border-radius: var(--recover-radius-md);

  background: var(--recover-success-bg);
  color: var(--recover-success);

  text-align: center;
}

.recover-success-icon {
  width: 50px;
  height: 50px;

  margin: 0 auto 16px;

  display: grid;
  place-items: center;

  border: 1px solid var(--recover-success-line);
  border-radius: 50%;
}

.recover-success-icon svg {
  width: 23px;
  height: 23px;
}

.recover-success h2 {
  margin: 0;

  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.recover-success p {
  margin: 12px 0 0;

  font-size: 13px;
  line-height: 1.65;
}

.recover-success-button {
  min-height: 48px;

  margin-top: 22px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: var(--recover-radius-sm);

  background: var(--recover-success);
  color: #ffffff;

  font-size: 13px;
  font-weight: 800;
}

.recover-success-button:hover {
  opacity: 0.92;
}

.recover-success-button svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
   AYUDA
   ========================================================= */

.recover-help {
  margin-top: 28px;
  padding: 15px;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  border: 1px solid var(--recover-line-soft);
  border-radius: var(--recover-radius-md);

  background: #fafafa;

  text-align: left;
}

.recover-help > svg {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  color: var(--recover-text-soft);
}

.recover-help > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recover-help span {
  font-size: 11px;
  color: var(--recover-text-muted);
}

.recover-help a {
  font-size: 12px;
  font-weight: 700;

  color: var(--recover-text);
}

.recover-help a:hover {
  text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */

.recover-footer {
  min-height: 62px;
  padding: 18px 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border-top: 1px solid var(--recover-line-soft);

  font-size: 11px;
  color: var(--recover-text-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 620px) {
  .recover-page {
    padding: 0;
  }

  .recover-card {
    min-height: 100vh;

    border: 0;
    border-radius: 0;
  }

  .recover-header {
    padding: 18px 20px;
  }

  .recover-brand-text,
  .recover-brand-divider {
    display: none;
  }

  .recover-back span {
    display: none;
  }

  .recover-content {
    width: min(100% - 36px, 470px);
    padding: 46px 0;
  }

  .recover-content h1 {
    font-size: 32px;
  }

  .recover-footer {
    padding: 18px 20px;

    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}