:root {
  --bg: #0b0d0f;
  --bg-raised: #14171a;
  --border: #24282c;
  --text: #e8e6e1;
  --text-dim: #9a9d9f;
  --ember: #ff6a35;
  --ember-dim: #a8481f;
  --danger: #c1443c;
  --ok: #7fae6f;
  --font-display: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 700px 500px at 50% -10%, rgba(255, 106, 53, 0.08), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}



.scene {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.brand__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px 2px rgba(255, 106, 53, 0.55);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card,
.attention,
.envoi-mdp {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 0.35s ease;
}

.card {
  padding: 28px 32px;
}

.attention,
.envoi-mdp {

  position: absolute;
  top: 24px;
  right: 64px;
  width: 580px;

  color: var(--text-dim);

  h2 {
    text-align: center;
  }

  ul {
    list-style-type: circle;

    li {
      margin-bottom: 6px;
      line-height: 1.5;
    }
  }
}

.attention {
  padding-bottom: 80px;

}

.envoi-mdp {

  left: 64px;

  padding: 18px 24px;

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th,
  td {
    padding: .6rem .8rem;
    border: 1px solid #a88f7b40;
  }

  th {
    border-bottom: 2px solid #a88f7b73;
  }

  tr:hover {
    background: #a88f7b0f;
  }

}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  color: #b9b9b9;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.card__hint {
  margin: -8px 0 4px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}

.textarea:focus {
  outline: none;
  border-color: var(--ember-dim);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row--between {
  justify-content: space-between;
}

.ttl-label {
  font-size: 15px;
  color: var(--text-dim);
}

.select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-body);
}

.select--full {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.toggle-row>span {
  font-size: 15px;

}

.toggle-row__checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--ember);
  cursor: pointer;
}

.password-field {
  margin-top: -6px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #ff7e4f8f;
  color: #1a0d05;
}

.btn--primary:hover {
  background: #ff7e4fd7;
}

.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember-dim);
  padding: 13px 16px;
}

.btn--ghost:hover {
  background: rgba(255, 106, 53, 0.08);
}

.link-box {
  display: flex;
  gap: 8px;
}

.link-box__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 13px 14px;
  min-width: 0;
}

.notice {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0;
}

.notice--info {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.notice--danger {
  color: #f0b3ad;
  background: rgba(193, 68, 60, 0.12);
  border: 1px solid rgba(193, 68, 60, 0.3);
}

.notice--warning {
  color: #f0d3a8;
  background: rgba(230, 168, 63, 0.1);
  border: 1px solid rgba(230, 168, 63, 0.28);
}

.message-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow-y: auto;
}

.message-box.is-burning {
  animation: burn 0.6s ease forwards;
}

@keyframes burn {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  60% {
    opacity: 0.3;
    filter: blur(1px);
    color: var(--ember);
  }

  100% {
    opacity: 0;
    filter: blur(3px);
  }
}

.ember {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd7ab, var(--ember) 45%, var(--ember-dim) 80%);
  box-shadow: 0 0 22px 4px rgba(255, 106, 53, 0.35);
}

.ember--out {
  background: radial-gradient(circle at 40% 35%, #4a4a4a, #2a2a2a 45%, #1a1a1a 80%);
  box-shadow: none;
}

.foot {
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .message-box.is-burning {
    animation: none !important;
  }
}