/* Reset minimal (parce que le navigateur aime saboter les layouts) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
}

/* Background */
.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(900px 450px at 80% 30%, rgba(16,185,129,.25), transparent 55%),
    linear-gradient(180deg, #0b1020, #0b1020);
}

/* Card */
.card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.card__header h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
  color: #e2e8f0;
}

.card__header p {
  margin: 6px 0 0;
  color: rgba(226,232,240,.78);
  font-size: 14px;
}

.form { margin-top: 18px; display: grid; gap: 14px; }

.field span {
  display: block;
  font-size: 12px;
  color: rgba(226,232,240,.78);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.55);
  color: #e2e8f0;
  outline: none;
  transition: transform .08s ease, border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder { color: rgba(226,232,240,.45); }

.field input:focus {
  border-color: rgba(99,102,241,.7);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}

/* Password row */
.password {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.ghost {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.55);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform .08s ease, border-color .2s ease, box-shadow .2s ease;
}

.ghost:active { transform: scale(0.98); }
.ghost:focus {
  outline: none;
  border-color: rgba(99,102,241,.7);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}

/* Row */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(226,232,240,.8);
  font-size: 13px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

/* Button */
.btn {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #0b1020;
  background: linear-gradient(90deg, #a78bfa, #60a5fa, #34d399);
  box-shadow: 0 10px 30px rgba(96,165,250,.22);
  transition: transform .08s ease, filter .2s ease;
}

.btn:active { transform: scale(0.99); }
.btn:hover { filter: brightness(1.05); }

/* Links + small text */
.link {
  color: rgba(165,180,252,.95);
  text-decoration: none;
  font-size: 13px;
}
.link:hover { text-decoration: underline; }

.small {
  margin: 8px 0 0;
  color: rgba(226,232,240,.72);
  font-size: 13px;
  text-align: center;
}

.footer {
  margin-top: 14px;
  color: rgba(226,232,240,.55);
  font-size: 12px;
}
