/*
 * Je Porte Le Rouge — Compte / authentication page polish
 * Scoped to /compte/ only through Assets.php.
 */
:root {
  --jpr-red: #b40018;
  --jpr-red-deep: #7b0010;
  --jpr-red-soft: #fff0f2;
  --jpr-ink: #151515;
  --jpr-muted: #676767;
  --jpr-line: rgba(180, 0, 24, .16);
  --jpr-paper: #ffffff;
  --jpr-cream: #fff8f6;
  --jpr-shadow: 0 28px 80px rgba(21, 21, 21, .12);
}

body .jpr-account-auth {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(180, 0, 24, .11), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(21, 21, 21, .08), transparent 28rem),
    linear-gradient(180deg, #fff 0%, var(--jpr-cream) 46%, #fff 100%);
}

body .jpr-account-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(90deg, rgba(180, 0, 24, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(180, 0, 24, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

body .jpr-account-auth .container {
  position: relative;
  z-index: 1;
}

body .jpr-account-auth .row {
  align-items: stretch !important;
}

body .jpr-auth-card,
body .jpr-auth-trust-card {
  position: relative;
  height: 100%;
  border: 1px solid rgba(180, 0, 24, .12) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,246,.94)) !important;
  box-shadow: var(--jpr-shadow) !important;
  overflow: hidden;
}

body .jpr-auth-card::before,
body .jpr-auth-trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--jpr-red), #ff3d53, var(--jpr-ink));
}

body .jpr-auth-card::after {
  content: "Compte citoyen";
  position: absolute;
  right: 22px;
  top: 18px;
  padding: .42rem .72rem;
  border-radius: 999px;
  color: var(--jpr-red);
  background: rgba(180, 0, 24, .08);
  border: 1px solid rgba(180, 0, 24, .16);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body .jpr-auth-card .card-body {
  padding-top: 4.2rem !important;
}

body #jpr-auth-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .45rem;
  border: 1px solid rgba(180, 0, 24, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body #jpr-auth-tabs .nav-item {
  margin: 0 !important;
}

body #jpr-auth-tabs .nav-link {
  border-radius: 999px;
  color: var(--jpr-ink);
  font-weight: 800;
  padding: .72rem 1.05rem;
  border: 0;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body #jpr-auth-tabs .nav-link:hover {
  transform: translateY(-1px);
  background: rgba(180, 0, 24, .08);
  color: var(--jpr-red);
}

body #jpr-auth-tabs .nav-link.active {
  background: var(--jpr-red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(180, 0, 24, .28);
}

body .jpr-account-auth .form-label {
  color: var(--jpr-ink);
  font-weight: 850;
  letter-spacing: -.01em;
}

body .jpr-account-auth .form-control {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(21,21,21,.12);
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body .jpr-account-auth .form-control:focus {
  border-color: rgba(180, 0, 24, .55);
  box-shadow: 0 0 0 .25rem rgba(180, 0, 24, .12);
  transform: translateY(-1px);
}

body .jpr-account-auth .form-text,
body .jpr-account-auth .small.text-muted {
  color: var(--jpr-muted) !important;
  line-height: 1.55;
}

body .jpr-account-auth .btn {
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -.01em;
}

body .jpr-account-auth .btn-dark,
body .jpr-account-auth .btn-danger {
  min-height: 52px;
  border: 0;
  background: linear-gradient(135deg, var(--jpr-red), var(--jpr-red-deep)) !important;
  box-shadow: 0 16px 34px rgba(180, 0, 24, .28);
}

body .jpr-account-auth .btn-dark:hover,
body .jpr-account-auth .btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(180, 0, 24, .34);
}

body .jpr-account-auth .btn-outline-secondary {
  color: var(--jpr-red);
  border-color: rgba(180, 0, 24, .2);
  background: rgba(255,255,255,.78);
}

body .jpr-account-auth .btn-outline-secondary:hover {
  color: #fff;
  border-color: var(--jpr-red);
  background: var(--jpr-red);
}

body #jpr-auth-alert {
  border: 0;
  border-radius: 18px;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(21,21,21,.08);
}

body #jpr-auth-alert.alert-success {
  color: #105536;
  background: #e9fff4;
}

body #jpr-auth-alert.alert-danger {
  color: #8a0012;
  background: #fff0f2;
}

body .jpr-auth-trust-card {
  padding: 2rem !important;
}

body .jpr-auth-trust-card h3 {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--jpr-red) !important;
  font-size: .82rem !important;
  font-weight: 900;
  letter-spacing: .08em;
}

body .jpr-auth-trust-card h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--jpr-red);
  box-shadow: 0 0 0 6px rgba(180, 0, 24, .11);
}

body .jpr-auth-trust-card ul {
  list-style: none;
  padding-left: 0 !important;
  margin-top: 1rem;
}

body .jpr-auth-trust-card li {
  position: relative;
  margin: 0 0 .78rem !important;
  padding: .84rem .92rem .84rem 2.45rem;
  border: 1px solid rgba(180, 0, 24, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: #2c2c2c;
  line-height: 1.45;
}

body .jpr-auth-trust-card li::before {
  content: "✓";
  position: absolute;
  left: .9rem;
  top: .83rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--jpr-red);
  font-size: .72rem;
  font-weight: 900;
}

body .jpr-auth-warning {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(180, 0, 24, .18);
  border-radius: 20px;
  color: #8a0012 !important;
  background: var(--jpr-red-soft);
  font-weight: 750;
  line-height: 1.55;
}

body .jpr-auth-register-actions {
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  body .jpr-account-auth {
    padding-top: 2rem !important;
  }

  body .jpr-auth-card,
  body .jpr-auth-trust-card {
    border-radius: 24px !important;
  }

  body .jpr-auth-card::after {
    left: 1.25rem;
    right: auto;
    top: 16px;
  }

  body .jpr-auth-card .card-body {
    padding: 4.2rem 1.1rem 1.25rem !important;
  }

  body #jpr-auth-tabs {
    width: 100%;
    border-radius: 22px;
  }

  body #jpr-auth-tabs .nav-link {
    padding: .68rem .86rem;
  }

  body .jpr-account-auth .d-flex.justify-content-between.align-items-center {
    align-items: flex-start !important;
    gap: .65rem;
  }

  body .jpr-account-auth .form-control,
  body .jpr-account-auth .btn-dark,
  body .jpr-account-auth .btn-danger {
    min-height: 50px;
  }

  body .jpr-auth-trust-card {
    padding: 1.2rem !important;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.jpr-light-mode) .jpr-account-auth {
    background:
      radial-gradient(circle at 8% 18%, rgba(180, 0, 24, .2), transparent 30rem),
      radial-gradient(circle at 92% 8%, rgba(255,255,255,.08), transparent 28rem),
      linear-gradient(180deg, #100f10 0%, #181112 55%, #0f0f10 100%);
  }

  body:not(.jpr-light-mode) .jpr-auth-card,
  body:not(.jpr-light-mode) .jpr-auth-trust-card {
    background: linear-gradient(180deg, rgba(31,26,27,.96), rgba(20,18,19,.96)) !important;
    border-color: rgba(255,255,255,.09) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.34) !important;
  }

  body:not(.jpr-light-mode) #jpr-auth-tabs,
  body:not(.jpr-light-mode) .jpr-auth-trust-card li,
  body:not(.jpr-light-mode) .jpr-account-auth .form-control,
  body:not(.jpr-light-mode) .jpr-account-auth .btn-outline-secondary {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
  }

  body:not(.jpr-light-mode) .jpr-account-auth .form-label,
  body:not(.jpr-light-mode) #jpr-auth-tabs .nav-link,
  body:not(.jpr-light-mode) .jpr-auth-trust-card li {
    color: #f7f1f1;
  }

  body:not(.jpr-light-mode) .jpr-account-auth .form-text,
  body:not(.jpr-light-mode) .jpr-account-auth .small.text-muted {
    color: rgba(255,255,255,.68) !important;
  }

  body:not(.jpr-light-mode) .jpr-account-auth .form-control {
    color: #fff;
  }
}
