:root {
  --bgc-app: #101010;
  --bgc-input: #212121;
  --color-text: #ffffff;
  --color-placeholder-input: #808080;
  --effect-color: #D9DBF1;
  --font-family-app: "Exo", sans-serif;
  --danger: #ff6b6b;
  --danger-lo: rgba(255, 107, 107, .1);
  --mono: 'DM Mono', monospace;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-app);
  background-color: var(--bgc-app);
  color: var(--color-text);
}

/* ── Layout ── */
.auth-tunedr-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

.top-auth-tunedr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.text-top-page {
  text-align: center;
  font-size: 1rem;
  max-width: 260px;
}

.auth-tunedr {
  width: 100%;
}

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

.inputs {
  margin-top: 10px;
  width: 50%;
}

@media screen and (max-width: 1000px) {
  .inputs { width: 80%; }
}

@media screen and (max-width: 700px) {
  .inputs { width: 90%; }
}

@media screen and (max-width: 400px) {
  .inputs { width: 100%; }
}

/* ── Fields ── */
.input {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

.form-label {
  color: var(--color-placeholder-input);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.form-control {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background-color: var(--bgc-input);
  padding: 10px 12px;
  color: var(--color-text);
  font-family: var(--font-family-app);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: var(--color-placeholder-input);
}

.form-control:focus {
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

/* ── Error states — même style que new-music ── */
.form-control.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-lo) !important;
  outline: none;
}

.field-error {
  margin: 4px 0 0;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--danger);
  display: block;
}

/* ── Global error alert ── */
.auth__alert {
  margin: 12px auto 0;
  padding: 10px 14px;
  width: min(680px, 92%);
  border-radius: 10px;
  background: rgba(255, 107, 107, .08);
  border: 1px solid rgba(255, 107, 107, .2);
  color: #ffc8c8;
  font-size: 13px;
  font-family: var(--mono);
}

/* ── Password toggle ── */
.form-label--row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.form-label--row > span:first-child {
  display: inline-block;
}

.pw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  cursor: pointer;
}

.pw-toggle svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ── Forgot password ── */
.forgot-password-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding: 0 10px;
}

.forgot-password-link {
  color: var(--color-placeholder-input);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color .2s, text-shadow .2s;
}

.forgot-password-link:hover {
  color: var(--effect-color);
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(217, 219, 241, .3);
}

@media screen and (max-width: 400px) {
  .forgot-password-link { font-size: 0.75rem; }
}

/* ── Submit area ── */
.link-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.form-check {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.form-check-input {
  cursor: pointer;
}

.submit-btn {
  padding: 11px 28px;
  background-color: var(--color-text);
  color: var(--bgc-app);
  border: none;
  outline: none;
  border-radius: 10px;
  font-family: var(--font-family-app);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.submit-btn:hover { opacity: .88; }
.submit-btn:active { transform: scale(.98); }

.link {
  text-align: center;
  font-size: 0.8rem;
}

.link a {
  color: var(--effect-color);
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}

/* ── Suggestion cliquable dans le message d'erreur ── */
.field-error__suggestion {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--danger);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .15s;
}

.field-error__suggestion:hover {
  opacity: .75;
}
