/* session/login.css

   Écran de connexion et d'inscription.

   Chargé par index.html, dans l'ordre de css/README.md. Ne pas changer cet
   ordre sans relire la section « Ordre de chargement ». */

/* ---------- wordmark ---------- */

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: var(--fs-6);
  line-height: 1.2;
  margin: 0;
}

.wordmark .logo-mark { height: 48px; }

.wordmark .lines { display: flex; flex-direction: column; }

.wordmark .lines i {
  font-style: normal;
  font-size: var(--fs-1);
  font-weight: 400;
  color: var(--primary);
}

.wordmark.big { font-size: var(--fs-7); }

.wordmark.big .logo-mark { height: 64px; }

.wordmark.big .lines i { font-size: var(--fs-2); }

/* ---------- sign in ---------- */

.screen-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
}

.login-card .wordmark { margin-bottom: 28px; }

.login-title { font-size: var(--fs-7); font-weight: 600; margin: 0 0 6px; }

.login-sub { color: var(--muted); margin: 0 0 26px; font-size: var(--fs-3); }

.login-hint {
  margin: 22px 0 0;
  font-size: var(--fs-2);
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

@media (max-width: 640px) {
  .login-card { padding: 28px 22px; }
}

/* ---------- connexion Google ---------- */

.or-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: var(--fs-2);
}

.or-line::before, .or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: normal;
}

/* ---------- liens de la carte de connexion ---------- */

.login-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-3);
  color: var(--muted);
}

.login-links .link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-links .link:hover { color: var(--text); }

.login-links .row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; justify-content: center; }

/* ---------- bouton Google ---------- */

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  line-height: normal;
}

.google-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- carte d'authentification, plus aérée ---------- */

.login-card {
  max-width: 400px;
  padding: 32px 30px;
  border-radius: var(--r-lg);
}

.login-card .field { margin-bottom: 14px; }

.login-card .field input { padding: 10px 12px; }

.login-title { font-size: var(--fs-7); letter-spacing: -0.02em; }

.login-sub { font-size: var(--fs-3); line-height: 1.55; margin-bottom: 24px; }

/* Connexion : le bouton de thème a sa propre ligne. */

.login-top { display: flex; justify-content: flex-end; margin-bottom: var(--s-2); }

/* ---------- version compacte : logo, titre, champs ---------- */

.login-card { text-align: center; border-radius: var(--r-lg); padding: 24px 28px 28px; }

.login-logo { display: block; width: 72px; height: auto; margin: 0 auto var(--s-4); }

.login-title { margin-bottom: var(--s-5); }

.login-card .field { text-align: left; margin-bottom: 10px; }

.login-card .field input { height: 48px; padding: 0 14px; border-radius: var(--r-md); }

.login-card .btn-block { height: 48px; border-radius: var(--r-md); }

.login-card #login-btn, .login-card #register-btn { margin-top: var(--s-2); }

.login-card .or-line { margin: 14px 0; }

.login-links { border-top: 0; padding-top: 0; margin-top: var(--s-4); }

.login-links .link { text-decoration: none; }

.login-links .link-quiet { font-weight: 500; color: var(--muted); }

.login-links .link-quiet:hover { color: var(--text); }
