/*
 * Charte NOCES portée sur le web (sous-ensemble minimal de core/theme côté app).
 * Crème #F9F7F2, police Parallel, inputs bordés 254px, liens soulignés — calé
 * sur le node Figma ResetPassword2 (2019:2629). Reste à aligner sur le PDF de
 * maquette fourni par Tom.
 */

:root {
  --cream: #f9f7f2;
  --ink: #000000;
  --grey: #afafaf;
  --argent: #969695;
  --border: #5b5b5a;
  --error: #c34c1e;
}

@font-face {
  font-family: "Parallel";
  src: url("fonts/Parallel-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noces";
  src: url("fonts/Noces-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: "Parallel", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.wordmark {
  font-family: "Noces", "Parallel", serif;
  letter-spacing: 0.18em;
  font-size: 20px;
  margin: 0 0 48px;
}

.title {
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 24px;
}

.state {
  animation: fade 0.2s ease;
}

.muted {
  font-size: 14px;
  line-height: 1.4;
}

/* Vue confirmation d'email (monogramme + messages). */
.monogram {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 32px;
}

.message {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.4;
}

.message:last-child {
  margin-bottom: 0;
}

/* « New password saved » sous Save (argent, fin). */
.note {
  margin: 16px 0 0;
  color: var(--argent);
  font-size: 12px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.field {
  width: 254px;
  height: 43px;
  margin-bottom: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  text-align: center;
  outline: none;
}

.field::placeholder {
  color: var(--grey);
}

.field:focus {
  border-color: var(--ink);
}

.link-button {
  margin-top: 8px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.error {
  min-height: 1em;
  margin: 0 0 12px;
  color: var(--error);
  font-size: 14px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
