:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo,
    sans-serif;
  color: #374151;
  background: #fff5eb;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px 16px;
}
.reset-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgb(0 0 0 / 7%);
}
header {
  text-align: center;
}
.logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 8px;
}
.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff2e4;
  color: #9c4600;
  font-size: 12px;
}
h1 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.4;
}
.intro {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 14px;
  text-align: left;
}
.reset-form {
  display: grid;
  gap: 16px;
}
.reset-form[hidden] {
  display: none;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
label {
  font-size: 14px;
  font-weight: 600;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd0d8;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 16px;
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #aa4e00;
  outline-offset: 3px;
}
button {
  font: inherit;
  cursor: pointer;
}
.resend {
  justify-self: start;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #9c4600;
  text-decoration: underline;
  font-size: 14px;
  text-align: left;
}
.hint {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  overflow-wrap: anywhere;
}
.primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #f5841f;
  color: #271200;
  font-size: 16px;
  font-weight: 700;
}
.primary:hover {
  background: #e87915;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.message {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fff2e4;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.message:empty {
  display: none;
}
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}
a {
  color: #9c4600;
  text-underline-offset: 3px;
}
@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  .reset-card {
    padding: 24px 20px;
  }
  h1 {
    font-size: 21px;
  }
}
