/* /var/www/portail/styles.css - charte 2SRK : bordeaux adouci + anthracite */
:root {
  --bordeaux: #7d2231;
  --bordeaux-fonce: #5c1826;
  --anthracite: #24252a;
  --gris: #f4f4f6;
  --texte: #1d1e22;
  --erreur: #b3261e;
  --succes: #1f7a4d;
  --rayon: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background:
    radial-gradient(circle at 12% 8%, rgba(125,34,49,.55) 0%, rgba(26,26,31,0) 55%),
    radial-gradient(circle at 88% 92%, rgba(125,34,49,.35) 0%, rgba(16,16,19,0) 50%),
    linear-gradient(160deg, #221a1d 0%, #141416 55%, #0d0d0f 100%);
}

body { display: flex; align-items: center; justify-content: center; padding: 32px 16px; min-height: 100vh; }

.carte {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--rayon);
  box-shadow: 0 28px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}

/* Filigrane du logo 2SRK sur la carte */
.carte::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: 118px;
  width: 260px;
  height: 182px;
  background: url("/assets/logo-2srk.png") no-repeat center/contain;
  opacity: .04;
  pointer-events: none;
}

.entete {
  position: relative;
  padding: 26px 24px 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-fonce) 100%);
  color: #fff;
  border-bottom: 3px solid rgba(255,255,255,.16);
}

/* Logo officiel, en blanc, 40 px de haut, sans pastille */
.logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 0 16px;
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.entete h1 { font-size: 20px; margin: 0 0 6px; line-height: 1.25; }
.sous-titre { margin: 0; font-size: 13px; opacity: .88; }

section { padding: 22px 24px 6px; }
.reseau {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f6eef0;
  color: var(--bordeaux);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.pastille {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--succes);
  box-shadow: 0 0 0 3px rgba(31,122,77,.16);
}

.aide { font-size: 13.5px; color: #55565c; margin: 0 0 18px; line-height: 1.5; }

label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--anthracite); }

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d6d7dc;
  border-radius: 10px;
  background: var(--gris);
  transition: border-color .15s, box-shadow .15s;
}
input[type=text] { margin-bottom: 16px; }
input:focus { outline: none; border-color: #b58c95; box-shadow: 0 0 0 3px rgba(181,140,149,.22); }

.champ-mdp { display: flex; gap: 8px; align-items: stretch; }
.champ-mdp input { flex: 1; }
#voir-mdp {
  padding: 0 14px; font-size: 12px; font-weight: 600; border: 1px solid #e0e0e6;
  border-radius: 10px; background: #ececf0; color: var(--bordeaux); cursor: pointer;
  transition: background .15s;
}
#voir-mdp:hover { background: #e2e2e8; }

button[type=submit], #bouton-deconnexion {
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--bordeaux);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
button[type=submit]:hover { background: var(--bordeaux-fonce); }
button[type=submit]:active { transform: translateY(1px); }
button[type=submit]:disabled { opacity: .6; cursor: progress; }
.secondaire { background: var(--anthracite) !important; }

.message { min-height: 20px; font-size: 13.5px; margin: 14px 0 4px; line-height: 1.45; }
.message.erreur { color: var(--erreur); }
.message.succes { color: var(--succes); }

h2 { font-size: 17px; margin: 0 0 16px; color: var(--anthracite); }

.details { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 8px; font-size: 14px; }
.details dt { color: #6a6b71; }
.details dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.conditions { margin: 26px 24px 0; border-top: 1px solid #ececf0; padding-top: 18px; }
.conditions summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--bordeaux); }
.conditions-corps { font-size: 12.5px; color: #55565c; line-height: 1.55; }
.conditions-corps h3 { font-size: 12.5px; color: var(--anthracite); margin: 14px 0 4px; }
.conditions-corps p { margin: 0; }

.pied { position: relative; padding: 18px 24px 22px; font-size: 12.5px; color: #55565c; text-align: center; line-height: 1.6; }
.pied-legal { color: #73747c; font-size: 12px; }

@media (max-width: 420px) {
  .entete { padding: 22px 18px 16px; }
  section { padding: 18px 18px 4px; }
  .conditions { margin-left: 18px; margin-right: 18px; }
  .entete h1 { font-size: 18px; }
}
