/* Page de connexion GCMLab — disposition en deux volets (marque + formulaire).
   Le design suit l'attribut data-design (GCM / Atelier) posé par theme-head.js. */

*, *::before, *::after { box-sizing: border-box; }
body.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: linear-gradient(135deg, #082c49 0%, #0f4c7d 55%, #1a6aa8 100%);
  color: #1c2733;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  max-width: 940px;
  min-height: 540px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(3, 20, 36, 0.45);
}
.auth-brand {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 46px 42px;
  color: #fff;
  background: linear-gradient(160deg, #0b3d64 0%, #0f4c7d 55%, #14618f 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  width: 100%;
}
.auth-logo-wrap {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-text { grid-row: 2; }
.auth-logo-img {
  height: 52px;
  width: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 13px;
  padding: 8px 12px;
}
.auth-brand h1 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.auth-brand p { color: #cfe0ef; font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.auth-features { list-style: none; margin: 0; padding: 0; }
.auth-features li { position: relative; padding-left: 26px; margin-bottom: 11px; color: #e4eefa; font-size: 13.5px; }
.auth-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #7fd0a1;
  font-weight: 700;
}
.auth-panel { padding: 46px 42px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel h2 { margin: 0 0 4px; font-size: 22px; color: #0b3d64; }
.auth-panel .sub { color: #6b7885; font-size: 13px; margin: 0 0 22px; }

.auth-alert { border-radius: 8px; padding: 9px 13px; font-size: 13px; margin-bottom: 16px; }
.auth-alert.error { background: #fdecec; border: 1px solid #e8b7b7; color: #a80000; }
.auth-alert.info { background: #fff6e5; border: 1px solid #f0d9a8; color: #8a6100; }

.auth-form label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 14px; }
.auth-form input[type=text],
.auth-form input[type=password],
.auth-form input[type=number] {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.auth-form input:focus { border-color: #0f4c7d; box-shadow: 0 0 0 3px rgba(15, 76, 125, 0.15); }
.auth-form .captcha-row { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.auth-form .captcha-q { font-weight: 700; color: #0b3d64; white-space: nowrap; font-size: 15px; }
.auth-form .captcha-row input { max-width: 130px; margin-top: 0; }
.auth-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0b3d64;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.auth-btn:hover { background: #0f4c7d; }
.auth-foot { margin: 18px 0 0; font-size: 11.5px; color: #6b7885; text-align: center; letter-spacing: 0.3px; }

@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 30px 26px; }
  .auth-features { display: none; }
  .auth-panel { padding: 30px 26px; }
}

/* ------------------------------- GCM (pastel) ------------------------------- */
html[data-design="gcm"] body.auth-body {
  background: linear-gradient(135deg, #fdf2ec 0%, #f9e3d6 55%, #f5d5c3 100%);
}
html[data-design="gcm"] .auth-shell {
  border: 1px solid #f0d9cc;
  box-shadow: 0 26px 70px rgba(154, 54, 25, 0.16);
}
html[data-design="gcm"] .auth-brand {
  background: linear-gradient(160deg, #fce9dd 0%, #f7d2bc 55%, #f0bda1 100%);
}
html[data-design="gcm"] .auth-brand h1 { color: #6b2410; }
html[data-design="gcm"] .auth-brand p { color: #8a4a30; }
html[data-design="gcm"] .auth-features li { color: #7a4028; }
html[data-design="gcm"] .auth-features li::before { color: #c9785a; }
html[data-design="gcm"] .auth-logo-img { background: rgba(255, 255, 255, 0.85); }
html[data-design="gcm"] .auth-panel h2,
html[data-design="gcm"] .auth-form .captcha-q { color: #bf4520; }
html[data-design="gcm"] .auth-form input:focus { border-color: #e0a184; box-shadow: 0 0 0 3px rgba(224, 161, 132, 0.28); }
html[data-design="gcm"] .auth-btn { background: #c9785a; }
html[data-design="gcm"] .auth-btn:hover { background: #b5664a; }

/* --------------------------- Atelier (crème / doré) --------------------------- */
html[data-design="atelier"] body.auth-body {
  background: linear-gradient(135deg, #f4efe4 0%, #efe6d3 100%);
}
html[data-design="atelier"] .auth-shell {
  border: 1px solid #e6e1d7;
  box-shadow: 0 26px 70px rgba(60, 45, 20, 0.22);
}
html[data-design="atelier"] .auth-brand {
  background: linear-gradient(160deg, #2a2620 0%, #55401b 55%, #8a6a2f 100%);
}
html[data-design="atelier"] .auth-brand h1,
html[data-design="atelier"] .auth-panel h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[data-design="atelier"] .auth-brand p { color: #ecd9ac; }
html[data-design="atelier"] .auth-features li { color: #f5ead0; }
html[data-design="atelier"] .auth-features li::before { color: #ecd9ac; }
html[data-design="atelier"] .auth-panel h2,
html[data-design="atelier"] .auth-form .captcha-q { color: #8a6a2f; }
html[data-design="atelier"] .auth-form input:focus { border-color: #b9924f; box-shadow: 0 0 0 3px rgba(185, 146, 79, 0.2); }
html[data-design="atelier"] .auth-btn { background: #8a6a2f; }
html[data-design="atelier"] .auth-btn:hover { background: #6f5525; }
