/* ─────────────────────────────────────────────────────────
    Forgot / Reset password — HopySuite UI
   ───────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────
    TOKENS / THEME (allineati al login)
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pink: #e91e63;
  --pink-600: #d31857;
  --teal: #16c1b3;
  --teal-600: #10a99d;

  --text: #0b1220;
  --muted: #5b667a;
  --ph: #8c97aa;

  --panel: rgba(255, 255, 255, 0.92);
  --panel-bd: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 100px rgba(0, 0, 0, 2.22);

  --radius: 16px;
  --field-w: 420px;

  /* Gradient INVERTITO rispetto al login */
  --grad-angle: 135deg;
  --grad-pink-a: rgba(233, 30, 99, 0.92);
  --grad-pink-b: rgba(233, 30, 99, 0.78);
  --grad-teal-a: rgba(22, 193, 179, 0.78);
  --grad-teal-b: rgba(22, 193, 179, 0.92);

  --focus-pink: rgba(233, 30, 99, 0.26);
  --focus-teal: rgba(22, 193, 179, 0.26);
}

/* ─────────────────────────────────────────
    BASE
   ───────────────────────────────────────── */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);

  display: grid;
  place-items: center;
  overflow-x: hidden;

  background: linear-gradient(
    var(--grad-angle),
    var(--grad-pink-a) 0%,
    var(--grad-pink-b) 30%,
    var(--grad-teal-a) 70%,
    var(--grad-teal-b) 100%
  );

  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom) 12px;
}

/* ─────────────────────────────────────────
    LAYOUT
   ───────────────────────────────────────── */
.auth-wrapper {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;

  background: var(--panel);
  border: 1px solid var(--panel-bd);
  border-radius: var(--radius);

  padding: 30px 28px;
  box-shadow: var(--shadow);

  text-align: center;
}

/* ─────────────────────────────────────────
    TITLES / TEXT
   ───────────────────────────────────────── */
.auth-card h1 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.auth-card p {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────
    FORM
   ───────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input {
  width: 100%;
  max-width: var(--field-w);
  align-self: center;

  height: 44px;
  padding: 0 14px;

  font-size: 14px;
  text-align: center;

  border-radius: 14px;
  border: 1px solid #d9deea;
  outline: none;

  background: #ffffff;
}

.auth-form input::placeholder {
  color: var(--ph);
}

.auth-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--focus-pink);
}

/* ─────────────────────────────────────────
    BUTTON
   ───────────────────────────────────────── */
.auth-form button {
  height: 46px;
  border: 0;
  border-radius: 16px;

  background: var(--pink);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.28);
  transition: transform 0.08s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-form button:hover {
  background: var(--pink-600);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(233, 30, 99, 0.32),
    0 6px 14px rgba(12, 20, 40, 0.12);
}

.auth-form button:active {
  transform: translateY(0);
  box-shadow: inset 0 3px 10px rgba(12, 20, 40, 0.18),
    0 6px 14px rgba(12, 20, 40, 0.1);
}

/* ─────────────────────────────────────────
    MESSAGE
   ───────────────────────────────────────── */
.auth-message {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
/* ─────────────────────────────────────────
    BACK TO LOGIN (ghost button)
   ───────────────────────────────────────── */
.auth-back {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  height: 40px;
  padding: 0 14px;

  border-radius: 14px;
  border: 1px solid rgba(22, 193, 179, 0.28);

  background: rgba(22, 193, 179, 0.1);
  color: #0f6b64; /* coerente con teal/ok */
  font-size: 13px;
  font-weight: 650;

  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(12, 20, 40, 0.08);
  transition: transform 0.08s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Icona/freccia sempre visibile ma sobria */
.auth-back .auth-back-arrow {
  display: inline-block;
  transform: translateY(-0.5px);
  opacity: 0.9;
}

.auth-back a:hover {
  background: rgba(22, 193, 179, 0.16);
  border-color: rgba(22, 193, 179, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(12, 20, 40, 0.14),
    0 6px 14px rgba(12, 20, 40, 0.1);
}

.auth-back a:active {
  transform: translateY(0);
  box-shadow: inset 0 3px 10px rgba(12, 20, 40, 0.14),
    0 6px 14px rgba(12, 20, 40, 0.08);
}

/* Focus accessibile (enterprise standard) */
.auth-back a:focus-visible {
  outline: 3px solid rgba(22, 193, 179, 0.35);
  outline-offset: 2px;
}

/* Riduzione motion */
@media (prefers-reduced-motion: reduce) {
  .auth-back a {
    transition: none;
  }
}

/*
  File: forgot.css
  Scopo: stile forgot/reset password (HopySuite)
  Dipendenze: nessuna
  Note:
  - Gradient invertito rispetto al login
  - CSS ridotto solo a ciò che serve
  - Riutilizzabile per reset.php
*/

/* ─────────────────────────────────────────
    LANGUAGE SWITCH (top-right)
    ───────────────────────────────────────── */
.lang-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.08s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  opacity: 0.75;
}

.lang-switch a:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 20, 40, 0.14);
}

.lang-switch a.active {
  opacity: 1;
  box-shadow: 0 10px 22px rgba(12, 20, 40, 0.16);
}

.lang-switch img {
  height: 18px;
  width: auto;
  border-radius: 6px;
  display: block;
}

/*
  File: dist/auth/password/css/forgot.css
  Scopo: aggiunta selettore lingua top-right
  Dipendenze: /dist/traduzione/bandiere/*.png
  Note: overlay leggero + blur
*/

/* ─────────────────────────────────────────
   LANGUAGE SWITCH — mobile (center + compact)
   ───────────────────────────────────────── */
@media (max-width: 520px) {
  .lang-switch {
    top: max(env(safe-area-inset-top), 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    gap: 6px;
  }

  .lang-switch a {
    padding: 4px;
    border-radius: 9px;
    opacity: 0.9;
  }

  .lang-switch img {
    height: 16px;
    border-radius: 5px;
  }
}

@media (max-width: 520px) {
  body {
    padding-top: calc(env(safe-area-inset-top) + 52px);
  }
}
