/* La page de connexion au Studio (/studio-connexion). Une feuille à part :
   la CSP de la page (style-src 'self') refuse les styles en ligne, et la
   feuille de l'application est bien plus lourde que ce qu'il faut ici.
   Mêmes couleurs que l'écran de connexion du CRM (index.html). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0d2640 0%, #143352 60%, #1a4060 100%);
  background-color: #0d2640;
  color: #0d2640;
}

.sc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 24px 16px;
}

.sc-logo { height: 64px; max-width: 100%; filter: brightness(0) invert(1); opacity: .92; }

.sc-carte {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
@media (max-width: 420px) {
  .sc-carte { padding: 1.75rem 1.25rem; }
}

.sc-carte h1 { font-size: 1.25rem; font-weight: 700; margin: 0; text-align: center; }
.sc-sous-titre { font-size: .9rem; color: #64748b; margin: .35rem 0 1.25rem; text-align: center; }
.sc-etat { font-size: .9rem; color: #334155; text-align: center; margin: 0 0 1rem; }

.sc-erreur {
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .85rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.sc-formulaire { display: flex; flex-direction: column; gap: .5rem; }
.sc-formulaire label { font-size: .82rem; font-weight: 600; color: #334155; margin-top: .25rem; }
.sc-formulaire input {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: .65rem .9rem;
  min-height: 44px;
  font-size: 1rem;
  font-family: inherit;
  color: #0d2640;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.sc-formulaire input:focus { border-color: #4f63f5; }

.sc-bouton {
  margin-top: .75rem;
  background: #0d2640;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem;
  min-height: 44px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.sc-bouton:hover, .sc-bouton:focus-visible { background: #1a3a5c; }
.sc-bouton:disabled { opacity: .7; cursor: wait; }
/* « Continuer vers le Studio en tant que … » : hors du formulaire, il prend
   toute la largeur de la carte, comme le bouton de connexion. */
.sc-plein { display: block; width: 100%; margin-top: 0; }

.sc-lien {
  display: inline-block;
  margin-top: .5rem;
  background: none;
  border: none;
  padding: .25rem 0;
  color: #4f63f5;
  font-size: .88rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* 11/11 : la double authentification après le mot de passe. */
.sc-formulaire .sc-case { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.sc-formulaire .sc-case input { min-height: 0; width: 18px; height: 18px; margin: 0; }
a.sc-bouton { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: .75rem; }
