/* La Tete — black / white / light green theme */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --white: #ffffff;
  --accent: white;
  /* light green */
  --accent-strong: white;
  --accent-soft: rgba(182, 240, 156, .14);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--accent)
}

/* ========== Split layout (public form) ========== */
.page-split {
  min-height: 100vh
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.split__visual {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #000;
  overflow: hidden;
}

.split__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(182, 240, 156, .18), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 100%);
}

.split__visual-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 56px;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
}

.visual-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 500;
}

.visual-tag {
  color: #dcdcdc;
  max-width: 34ch;
  margin: 0
}

.split__form {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 40px clamp(24px, 5vw, 72px);
}

/* Brand / logo */
.brand {
  margin-bottom: 32px
}

.brand__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo.center {
  justify-content: center;
  text-align: left;
  margin-bottom: 24px
}

.brand__mark {
  width: 106px;
  height: 106px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: .05em;
  font-family: var(--font-display);
  box-shadow: 0 6px 18px var(--accent-soft);
  padding: 20px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
}

.brand__sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

/* Form */
.form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  width: 100%
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.form-lead {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: .95rem
}

.form-group {
  margin-bottom: 18px
}

.form-group label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-group input::placeholder {
  color: #5f5f5f
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: #1a1a1a;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px var(--accent-soft);
}

.btn-submit:hover {
  background: var(--accent-strong);
  transform: translateY(-1px)
}

.btn-submit:active {
  transform: translateY(0)
}

/* Messages */
.message {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: .92rem;
  border: 1px solid transparent;
}

.message.error {
  background: rgba(255, 107, 107, .08);
  border-color: rgba(255, 107, 107, .35);
  color: #ffb4b4
}

.message.success {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent)
}

.form-foot {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem
}

.form-foot p {
  margin: 4px 0
}

.form-foot .muted {
  color: #666
}

/* ========== Login page ========== */
.page-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(182, 240, 156, .10), transparent 60%),
    var(--bg);
}

.login-shell {
  width: 100%;
  max-width: 440px
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-top: 0
}

/* ========== Admin dashboard (inherits, plus extras) ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px
}

.dashboard-header,
header.dashboard-header,
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3 {
  color: var(--text)
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line)
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500
}

tr:last-child td {
  border-bottom: none
}

tr:hover td {
  background: rgba(182, 240, 156, .04)
}

.btn-filter {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .2s;
  font-family: inherit;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-export,
.btn-logout {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .2s;
  font-family: inherit;
}

.btn-primary,
.btn-export {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent)
}

.btn-primary:hover,
.btn-export:hover {
  background: var(--accent-strong)
}

.btn-secondary,
.btn-logout {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2)
}

.btn-secondary:hover,
.btn-logout:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.filters,
.filter-section,
.search-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  /* display: flex;
  flex-wrap: wrap; */
  gap: 12px;
  align-items: end;
}

.filters input,
.filters select,
.filter-section input,
.filter-section select {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card h3,
.stat-card .stat-label {
  margin: 0 0 8px;
  font-size: 2.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.stat-card .stat-value,
.stat-card .value,
.stat-card p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.badge,
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status-active,
.badge-active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent)
}

.status-expired,
.badge-expired {
  background: rgba(255, 107, 107, .1);
  color: #ffb4b4;
  border: 1px solid rgba(255, 107, 107, .4)
}

/* Responsive */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr
  }

  .split__visual {
    min-height: 240px
  }

  .split__visual-content {
    padding: 28px 24px
  }

  .split__form {
    padding: 32px 24px
  }

  .form-card {
    padding: 28px 22px
  }
}