/* Mira auth / Devise pages — sober storefront style */

.mira-storefront .mira-auth {
  --mira-auth-ink: #2d2b37;
  --mira-auth-muted: #6b6878;
  --mira-auth-line: #e8e5df;
  --mira-auth-cream: #faf9f7;
  --mira-auth-gold: #ffd360;
  --mira-auth-mint: #b9e5db;

  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--mira-auth-ink);
  font-family: "clear", "Josefin Sans", sans-serif;
}

.mira-storefront .mira-auth__panel {
  background: #fff;
  border: 1px solid var(--mira-auth-line);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .mira-storefront .mira-auth__panel {
    padding: 2.25rem 2rem;
  }
}

.mira-storefront .mira-auth__title {
  margin: 0 0 0.5rem;
  font-family: "clear", "Josefin Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--mira-auth-ink);
  text-align: center;
}

.mira-storefront .mira-auth__subtitle {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mira-auth-muted);
}

.mira-storefront .mira-auth__subtitle a,
.mira-storefront .mira-auth__link,
.mira-storefront .mira-auth__footer a {
  color: var(--mira-auth-ink);
  text-decoration: underline;
  text-decoration-color: var(--mira-auth-gold);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mira-storefront .mira-auth__subtitle a:hover,
.mira-storefront .mira-auth__link:hover,
.mira-storefront .mira-auth__footer a:hover {
  color: #565369;
  text-decoration-color: #565369;
}

.mira-storefront .mira-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mira-storefront .mira-auth__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mira-storefront .mira-auth__field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mira-auth-ink);
}

.mira-storefront .mira-auth__field input[type="email"],
.mira-storefront .mira-auth__field input[type="password"],
.mira-storefront .mira-auth__field input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--mira-auth-line);
  border-radius: 8px;
  background: var(--mira-auth-cream);
  color: var(--mira-auth-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mira-storefront .mira-auth__field input:focus {
  outline: none;
  border-color: var(--mira-auth-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 211, 96, 0.35);
}

.mira-storefront .mira-auth__field input::placeholder {
  color: #a8a5b3;
}

.mira-storefront .mira-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.mira-storefront .mira-auth__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mira-auth-muted);
}

.mira-storefront .mira-auth__remember label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.mira-storefront .mira-auth__remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--mira-auth-ink);
}

.mira-storefront .mira-auth__submit {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--mira-auth-ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mira-storefront .mira-auth__submit:hover {
  background: #565369;
}

.mira-storefront .mira-auth__submit:focus-visible {
  outline: 2px solid var(--mira-auth-gold);
  outline-offset: 2px;
}

.mira-storefront .mira-auth__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--mira-auth-muted);
}

.mira-storefront .mira-auth .errorExplanation {
  margin-bottom: 1.25rem;
  font-family: inherit;
}
