/* -------------------- GLOBAL -------------------- */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d172a;
}

h1,
p,
label,
input,
button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -------------------- BACKGROUND -------------------- */
.background {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 115% 78% at 100% 116%, transparent 63%, rgba(139, 190, 184, 0.14) 63.2%, rgba(139, 190, 184, 0.14) 63.7%, transparent 64%),
    radial-gradient(ellipse 105% 72% at 100% 116%, transparent 69%, rgba(139, 190, 184, 0.09) 69.2%, rgba(139, 190, 184, 0.09) 69.7%, transparent 70%),
    radial-gradient(ellipse 95% 65% at -4% 112%, rgba(210, 174, 123, 0.12), transparent 70%),
    linear-gradient(135deg, #142638, #1b3948 58%, #122b39);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% -15%, transparent 69%, rgba(190, 211, 207, 0.08) 69.2%, rgba(190, 211, 207, 0.08) 69.7%, transparent 70%),
    linear-gradient(180deg, rgba(8, 15, 26, 0.04), rgba(8, 15, 26, 0.18));
  z-index: 0;
  pointer-events: none;
}

/* -------------------- WHITE CIRCLE -------------------- */
.white-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 252, 0.86));
  border-radius: 50%;
  top: -90px;
  left: -80px;
  box-shadow:
    0 34px 80px rgba(5, 10, 20, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* -------------------- LOGO -------------------- */
.logo-pdp {
  position: relative;
  width: 220px !important;
  max-width: 65%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(15, 23, 42, 0.12));
}

/* -------------------- LOGIN CONTAINER -------------------- */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 32px 18px;
}

/* -------------------- LOGIN CARD -------------------- */
.login-card {
  position: relative;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(248, 215, 122, 0.07) 100%),
    rgba(10, 17, 28, 0.32);
  backdrop-filter: blur(32px) saturate(185%);
  -webkit-backdrop-filter: blur(32px) saturate(185%);
  padding: 34px 36px 28px;
  border-radius: 34px;
  width: 100%;
  max-width: 430px;
  text-align: center;
  box-shadow:
    0 40px 90px rgba(5, 10, 20, 0.5),
    0 8px 24px rgba(5, 10, 20, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: glassRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}

/* Halo doré supérieur */
.login-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -160px;
  right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 215, 122, 0.22), transparent 65%);
  pointer-events: none;
}

/* Reflet vitré balayant */
.login-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 55%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(10deg);
  pointer-events: none;
}

.card-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 18px rgba(5, 10, 20, 0.24);
}

.logo {
  position: relative;
  width: 150px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(5, 10, 20, 0.35));
}

/* -------------------- TITRES & TEXTES -------------------- */
h1 {
  position: relative;
  font-size: clamp(2.2rem, 2vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.05em;
  text-shadow: 0 0 22px rgba(248, 215, 122, 0.28), 0 2px 16px rgba(5, 10, 20, 0.5);
}

.subtitle {
  position: relative;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 12px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(5, 10, 20, 0.45);
}

/* Filet doré séparateur */
.subtitle::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, rgba(248, 215, 122, 0.85), transparent);
}

form {
  position: relative;
  margin-top: 22px;
}

.field-group {
  margin-bottom: 18px;
  text-align: left;
}

label {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(5, 10, 20, 0.5);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px rgba(5, 10, 20, 0.22);
}

.input-wrap:focus-within {
  border-color: rgba(248, 215, 122, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 4px rgba(248, 215, 122, 0.14),
    0 16px 32px rgba(5, 10, 20, 0.28);
  transform: translateY(-1px);
}

.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  color: #f8d77a;
  padding-left: 12px;
  filter: drop-shadow(0 0 12px rgba(248, 215, 122, 0.25));
}

.input-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px 15px 8px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #ffffff;
  font-size: 0.98rem;
  outline: none;
}

.input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.toggle-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: #f8d77a;
  cursor: pointer;
  padding: 0 12px 0 0;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 12px rgba(248, 215, 122, 0.2));
}

.toggle-password:hover {
  color: #fff2ba;
  transform: scale(1.06);
}

.toggle-password.is-visible {
  color: #fff2ba;
}

.forgot-password {
  display: inline-block;
  margin-top: 10px;
  color: #f8d77a;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.forgot-password:hover {
  color: #fff2ba;
  opacity: 1;
}

/* -------------------- BUTTON -------------------- */
.btn-login {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbe3a1 0%, #f5cd63 32%, #e0a41a 100%);
  color: #1a1206;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 34px rgba(224, 164, 26, 0.32),
    0 6px 14px rgba(5, 10, 20, 0.24);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Reflet balayant sur le bouton */
.btn-login::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(12deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 42px rgba(224, 164, 26, 0.42),
    0 8px 18px rgba(5, 10, 20, 0.28);
}

.btn-login:hover::after {
  left: 120%;
}

.copyright {
  margin: 24px 0 0;
  font-size: 0.7rem !important;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62) !important;
  letter-spacing: 0.02em;
}

.link-info {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
  text-align: center;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes glassRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
   opacity: 0;
   transform: translateY(32px);
  }
  to {
   opacity: 1;
   transform: translateY(0);
  }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
  .white-circle {
   width: 220px;
   height: 220px;
   top: -60px;
   left: -30px;
  }

  .logo-pdp {
   width: 140px !important;
  }

  .login-card {
   max-width: 360px;
   padding: 26px 22px 22px;
  }

  .btn-login {
   padding: 14px 16px;
  }
}

/* ------------------------------
   STYLE GLOBAL
------------------------------ */

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f4f1e8; /* beige clair */
  color: #333;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ------------------------------
   HEADER
------------------------------ */

header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-pdp {
  width: 120px;
  margin-bottom: 10px;
}

header h1 {
  font-size: 26px;
  font-weight: 600;
  color: #444;
}

/* ------------------------------
   BLOCS (sections)
------------------------------ */

.bloc {
  background-color: #e8dfcf; /* beige foncé */
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.bloc h2 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* ------------------------------
   FORMULAIRE
------------------------------ */

.form-defunt .row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.form-defunt label {
  flex: 1 1 150px;
  font-weight: 600;
}

.form-defunt input,
.form-defunt textarea {
  flex: 2 1 250px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fdfbe9; /* beige très clair */
  font-size: 14px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* ------------------------------
   CHECKBOXES
------------------------------ */

.checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 150px;
}

/* ------------------------------
   BOUTON
------------------------------ */

.btn-save {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
  transition: 0.2s;
}

.btn-save:hover {
  background-color: #c64542;
}

/* ------------------------------
   TABLEAU
------------------------------ */

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background-color: #d4c7b4;
}

thead th {
  padding: 12px;
  font-weight: 600;
  text-align: left;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background-color: #f5f0e6;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
  text-align: center;
  margin-top: 40px;
  color: #555;
}
/* ------------------------------
   TRANSITION ENTRE LES CARTES
------------------------------ */
.fade-out {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in {
  animation: glassRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ------------------------------
   CARTE CHOIX DU CIMETIERE
------------------------------ */
.cimetiere-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.btn-cimetiere {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  padding: 15px 18px;
}

/* Sites pas encore disponibles */
.btn-cimetiere:disabled {
  cursor: not-allowed;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(5, 10, 20, 0.18);
}

.btn-cimetiere:disabled:hover {
  transform: none;
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(5, 10, 20, 0.18);
}

.btn-cimetiere:disabled::after {
  display: none;
}

.logo-pdp {
  opacity: 0;
  transform: scale(0.9);
  animation: logoFade 1.2s ease-out forwards;
}

@keyframes logoFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
