/* Market Monitor — Page de connexion v2 (cinématique)
   Reprend l'esthétique de la landing : fond sombre + photo + chandeliers
   animés. Card centrée avec champs username/password. */

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.login-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}

/* ───────────── Fond cinématique ───────────── */
.login-bg-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(1.1);
  z-index: 0;
  animation: mm-slow-zoom 30s ease-in-out infinite alternate;
}
.login-bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.5) 0%, rgba(10,14,26,0.85) 100%);
  z-index: 0;
}
.login-bg-candles {
  position: fixed;
  inset: 0;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

/* ───────────── Header ───────────── */
.login-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--text);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}
.login-brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.login-brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.login-back {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color 0.15s, background 0.15s;
}
.login-back:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ───────────── Main / card ───────────── */
.login-main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid #1e2942;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: mm-rise 0.4s cubic-bezier(.2,.8,.2,1);
}
.login-card-head {
  margin-bottom: 24px;
}
.login-card-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 8px;
}
.login-card-title {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}
.login-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.login-card-error {
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-card-error::before {
  content: '⚠';
  font-size: 14px;
}

.login-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 500;
}
.login-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #1e2942;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,141,239,0.15);
}
.login-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(91,141,239,0.25);
}
.login-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91,141,239,0.35);
}
.login-submit:active {
  transform: translateY(0);
}
.login-card-foot {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.login-card-foot a {
  color: var(--accent);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}
.login-card-foot a:hover {
  border-bottom-color: var(--accent);
}

/* ───────────── Footer ───────────── */
.login-footer {
  position: relative;
  z-index: 2;
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.login-footer .mono { font-family: var(--font-mono); }

/* ───────────── Keyframes (locales pour cette page) ───────────── */
@keyframes mm-slow-zoom { from { transform: scale(1.04) } to { transform: scale(1.12) } }
@keyframes mm-rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* ───────────── Responsive ───────────── */
@media (max-width: 600px) {
  .login-header { padding: 16px 20px; }
  .login-footer { padding: 16px 20px; flex-direction: column; gap: 4px; }
  .login-card { padding: 28px 24px; }
}
