/* ============================================================================
   SnapStation Comptes — écrans de connexion (/login, /reset)
   ----------------------------------------------------------------------------
   Chargée APRÈS css/ss-ui.css (le socle commun à tous les outils). Ces pages
   n'exécutent aucun script (CSP) : elles restent dans le thème sombre de la
   marque, en écran d'accueil commun à toute la suite.
   ========================================================================== */

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gradient-canvas);
  position: relative;
  overflow: hidden;
}
.login__texture {
  position: absolute;
  inset: 0;
  background-image: url("../assets/ui/hex-tile.png");
  background-size: 240px;
  opacity: 0.06;
  pointer-events: none;
}
.login__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.login__glow--magenta {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(235, 85, 255, 0.22), transparent 70%);
  top: -180px;
  right: -140px;
}
.login__glow--blue {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.18), transparent 70%);
  bottom: -160px;
  left: -120px;
}

.login__card {
  position: relative;
  width: 100%;
  max-width: 434px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 34px 34px;
  box-shadow: var(--shadow-lg);
  animation: ssFadeUp 0.5s var(--ease-out) both;
}
.login__logo { display: flex; justify-content: center; margin-bottom: 24px; }
.login__logo img { height: 104px; width: auto; }
.login__head { text-align: center; margin-bottom: 24px; }
.login__eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--magenta-400);
  margin-bottom: 8px;
}
/* Akira : les titres de ces pages sont écrits sans accents dans le PHP. */
.login__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0 0 8px;
}
.login__sub { font-size: 14px; color: var(--text-muted); margin: 0; }
.login__sub strong { color: var(--text-strong); }
.login__fields { display: flex; flex-direction: column; gap: 14px; }
/* Le bouton doit se détacher des champs, sinon il se lit comme un
   troisième champ du formulaire. */
.login__fields .btn { margin-top: 8px; }
.login__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13.5px;
}
.login__aside a:not(.btn) { color: var(--magenta-400); font-weight: 600; }
.input-box__icon { display: flex; flex: none; }

@media (max-width: 480px) {
  .login { padding: 16px; }
  .login__card { padding: 30px 22px; }
}

/* ---- Accueil connecté (/) : les outils du compte ---- */
.login__apps { display: flex; flex-direction: column; gap: 8px; }
.login__app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--fill-faint);
  color: var(--text-strong);
  transition: border-color 160ms var(--ease-standard);
}
.login__app:hover { border-color: var(--magenta-500); text-decoration: none; color: var(--text-strong); }
.login__app > span { display: flex; flex-direction: column; gap: 2px; }
.login__app b { font-size: 15px; font-weight: 700; }
.login__app > span > span { font-size: 12.5px; color: var(--text-muted); }
.login__app .icon { color: var(--text-muted); }
.login__manage { margin-top: 14px; }
