:root {
  color-scheme: dark;
  --fond: #0f1115;
  --carte: #171a21;
  --bordure: #262b36;
  --texte: #e6e8ec;
  --doux: #98a0ae;
  --accent: #4c8dff;
  --succes: #3ec98a;
  --erreur: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.5;
}

.centre {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.carte {
  width: 100%;
  max-width: 26rem;
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 2rem;
}

h1 { font-size: 1.6rem; margin: 0 0 .25rem; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; margin: 0 0 1rem; font-weight: 600; }
p  { color: var(--doux); margin: .25rem 0 1.25rem; }

label {
  display: block;
  font-size: .85rem;
  color: var(--doux);
  margin-bottom: .35rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: .7rem .85rem;
  margin-bottom: 1rem;
  background: #0f1218;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  color: var(--texte);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  width: 100%;
  padding: .75rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.1); }

.message {
  padding: .75rem .9rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.message.erreur { background: #2a1618; border: 1px solid #4d2226; color: var(--erreur); }
.message.succes { background: #12271e; border: 1px solid #1e4a36; color: var(--succes); }

.barre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bordure);
}

.barre span { font-size: .85rem; color: var(--doux); }

a { color: var(--accent); text-decoration: none; font-size: .9rem; }
a:hover { text-decoration: underline; }

/* Bloc affiche apres l'envoi d'une invitation : le lien de connexion au client. */
.connexion {
  background: #101c2e;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.connexion h3 { margin: 0 0 .4rem; font-size: 1rem; }
.connexion .petit { font-size: .85rem; margin: 0 0 1rem; }

a.bouton {
  display: block;
  text-align: center;
  padding: .7rem;
  background: var(--succes);
  color: #06231a;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
}

a.bouton:hover { filter: brightness(1.08); text-decoration: none; }
