/* ============================================================
   Auth — ログイン / 会員登録 / パスワード再設定
   ============================================================ */

.page-auth {
  --auth-accent: #a93e62;
  --auth-border: #f0e2e8;
  background: #fff;
}

.auth-page {
  position: relative;
  overflow: hidden;
  min-height: 40rem;
  padding: 4rem 0 5rem;
  background: linear-gradient(169deg, #fff 8.5%, #fdf5f7 58.3%, #fff 91.5%);
}

.auth-page__blob--1 {
  left: 12.5rem;
  top: -13.8rem;
  width: 32.5rem;
  height: 32.5rem;
  background: #f8d7e3;
  filter: blur(10.625rem);
  opacity: 0.55;
}

.auth-page__blob--2 {
  right: 5rem;
  top: 7.5rem;
  width: 23.75rem;
  height: 23.75rem;
  background: #fdebc8;
  filter: blur(11.25rem);
  opacity: 0.45;
}

.auth-page__blob--3 {
  left: 30%;
  top: 19rem;
  width: 27.5rem;
  height: 27.5rem;
  background: #e6dff5;
  filter: blur(10.3rem);
  opacity: 0.5;
}

.auth-page__blob--4 {
  right: 10%;
  top: 17.5rem;
  width: 18.75rem;
  height: 18.75rem;
  background: #dff2e9;
  filter: blur(9.7rem);
  opacity: 0.4;
}

.auth-page__inner {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.auth-page__inner--sm {
  max-width: 30rem; /* 480px */
}

.auth-page__inner--md {
  max-width: 35rem; /* 560px */
}

.auth-head {
  text-align: center;
}

.auth-head__label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1875rem;
  line-height: 1.5;
  color: rgba(169, 62, 98, 0.6);
}

.auth-head__title {
  margin-top: 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.125rem;
  color: var(--color-heading);
}

.auth-head__title--sm {
  font-size: 1.75rem;
  line-height: 1.5;
}

.auth-head__lead {
  margin-top: 0.5rem;
  font-size: var(--fs-13);
  line-height: 1.8;
  color: var(--color-body);
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.auth-benefit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0.875rem;
  background: #fff;
  border: 0.0625rem solid var(--auth-border);
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.375rem rgba(169, 62, 98, 0.03);
}

.auth-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: #f9eaef;
  border-radius: 0.625rem;
}

.auth-benefit__icon img {
  width: 1.125rem;
  height: 1.125rem;
}

.auth-benefit__title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-heading);
}

.auth-benefit__text {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.auth-card {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border: 0.0625rem solid var(--auth-border);
  border-radius: 1.5rem;
  box-shadow: 0 0.25rem 1rem rgba(169, 62, 98, 0.04);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-nav);
}

.auth-req {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: #f9eaef;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--auth-accent);
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.75rem 1rem;
  min-height: 2.9375rem;
  background: #fff;
  border: 0.0625rem solid var(--auth-border);
  border-radius: 1rem;
  font-size: var(--fs-14);
  color: var(--color-heading);
}

.auth-field input::placeholder {
  color: rgba(39, 31, 36, 0.5);
}

.auth-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--auth-accent) 45%, #fff);
  box-shadow: 0 0 0 0.1875rem rgba(169, 62, 98, 0.08);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-nav);
  cursor: pointer;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--auth-accent);
}

.auth-check a {
  color: var(--auth-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(173deg, #a93e62 0%, #b5486b 100%);
  box-shadow: 0 0.25rem 0.625rem rgba(169, 62, 98, 0.25);
  font-size: var(--fs-14);
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-0.0625rem);
}

.auth-submit--muted,
.auth-submit:disabled {
  background: #d9b4c2;
  box-shadow: none;
  cursor: not-allowed;
}

.auth-submit:disabled:hover {
  opacity: 1;
  transform: none;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-links a {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.auth-links__accent {
  color: var(--auth-accent) !important;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--auth-border);
}

.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 0.0625rem solid var(--auth-border);
  border-radius: 1rem;
  font-size: var(--fs-13);
  color: var(--color-nav);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-social__btn:hover {
  background: #fdfafb;
  border-color: color-mix(in srgb, var(--auth-accent) 25%, var(--auth-border));
}

.auth-social__btn img {
  width: 1.125rem;
  height: 1.125rem;
}

.auth-social__line {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  color: #06c755;
}

.auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.auth-foot a {
  color: var(--auth-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.auth-back {
  text-align: center;
}

.auth-back a {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.125rem;
  background: #fdf0f0;
  border: 0.0625rem solid #f3c8c8;
  border-radius: 1rem;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: #a13a3a;
}

.auth-alert p + p {
  margin-top: 0.25rem;
}

.auth-alert--success {
  background: #eef8f1;
  border-color: #bfe4cb;
  color: #2f7a4d;
}

.auth-submit--danger {
  background: #fff;
  border: 0.09375rem solid #d94f4f;
  box-shadow: none;
  color: #d94f4f;
}

.auth-submit--danger:hover:not(:disabled) {
  background: #fdf0f0;
}

.auth-back a:hover {
  color: var(--auth-accent);
}

@media (max-width: 40rem) {
  .auth-page {
    padding: 3rem 0 4rem;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .auth-head__title {
    font-size: 1.5rem;
    letter-spacing: 0.08rem;
  }
}
