/* Enigme Pilotage — Auth pages (Connexion / Inscription)
   Relies on /styles/espace-client.css for @font-face + base body reset. */

:root {
  --ep-bg:          #0a0a0b;
  --ep-panel:       #0e0e10;
  --ep-line:        rgba(255, 255, 255, 0.10);
  --ep-line-strong: rgba(255, 255, 255, 0.16);
  --ep-text:        #f4f2ee;
  --ep-muted:       #9c9a95;
  --ep-dim:         #8a8884;
  --ep-accent:      #FF7A1A;
  --ep-accent-hi:   #FFB066;
  --ep-err:         #ff7a66;
}

/* ---------- Shell ---------- */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
}

/* ---------- Left brand panel ---------- */
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 46px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-right: 1px solid var(--ep-line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 26, 0.10), transparent 55%),
    linear-gradient(160deg, #141416 0%, #0a0a0b 62%);
}
@media (max-width: 900px) {
  .auth-aside { display: none; }
}

.auth-watermark {
  position: absolute;
  bottom: -12vh;
  right: -4vw;
  font-family: 'Anton', sans-serif;
  font-size: 34vw;
  line-height: 0.7;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
}
.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ep-accent);
  border-radius: 50%;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: var(--ep-accent);
}
.auth-word-wrap { display: flex; flex-direction: column; gap: 5px; }
.auth-word {
  font-family: 'Anton', sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.auth-word .o { color: var(--ep-accent); }
.auth-word .w { color: var(--ep-text); }
.auth-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ep-dim);
}

.auth-aside-body {
  position: relative;
  z-index: 2;
  max-width: 430px;
}
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ep-accent-hi);
  border: 1px solid rgba(255, 122, 26, 0.35);
  background: rgba(255, 122, 26, 0.06);
  padding: 8px 14px;
  border-radius: 2px;
}
.auth-lead {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 20px 0 0;
}
.auth-lead .o { color: var(--ep-accent); }

.auth-points {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-points li {
  display: flex;
  gap: 13px;
  color: var(--ep-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.auth-points .n {
  flex: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--ep-accent);
  padding-top: 1px;
}

.auth-aside-foot {
  position: relative;
  z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ep-dim);
}

/* ---------- Right form panel ---------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  animation: auth-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-dim);
  margin-bottom: 30px;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--ep-accent); }

.auth-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ep-accent-hi);
}
.auth-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 12px 0 0;
}
.auth-sub {
  color: var(--ep-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 12px 0 30px;
}

/* ---------- Form ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ep-dim);
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input {
  width: 100%;
  background: #09090b;
  border: 1px solid var(--ep-line-strong);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ep-text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.auth-input:focus {
  border-color: var(--ep-accent);
  background: #0a0a0b;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.14);
}
.auth-input.has-toggle { padding-right: 82px; }

.auth-toggle {
  position: absolute;
  right: 7px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ep-dim);
  padding: 8px 10px;
  border-radius: 4px;
  transition: color 0.2s;
}
.auth-toggle:hover { color: var(--ep-accent); }

.auth-row { display: flex; gap: 14px; }
.auth-row .auth-field { flex: 1 1 0; min-width: 0; }
@media (max-width: 430px) {
  .auth-row { flex-direction: column; gap: 17px; }
}

.auth-hint-link {
  align-self: flex-end;
  margin-top: 2px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ep-dim);
  transition: color 0.2s;
}
.auth-hint-link:hover { color: var(--ep-accent); }

.auth-help {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ep-dim);
  margin-top: -4px;
}

.auth-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ep-err);
  background: rgba(255, 90, 80, 0.08);
  border: 1px solid rgba(255, 90, 80, 0.28);
  border-radius: 6px;
  padding: 11px 13px;
}
.auth-error.show { display: flex; }

.auth-submit {
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  background: var(--ep-accent);
  color: #0a0a0b;
  border: none;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 6px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.auth-submit:hover {
  background: #ff8a33;
  box-shadow: 0 8px 30px -10px rgba(255, 122, 26, 0.6);
}
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.auth-alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ep-line);
  font-size: 14px;
  color: var(--ep-muted);
  text-align: center;
}
.auth-alt a {
  color: var(--ep-accent);
  font-weight: 600;
}
.auth-alt a:hover { text-decoration: underline; }
