:root {
  --auth-white: #fffdfc;
  --auth-ivory: #fcf8f6;
  --auth-pink-beige: #f8eeee;
  --auth-pink-light: #f3dadd;
  --auth-rose: #bf7080;
  --auth-rose-dark: #9f5867;
  --auth-brown: #684a49;
  --auth-brown-dark: #4d3332;
  --auth-line: #ecd4d7;
  --auth-serif: "Noto Serif JP", "Yu Mincho", serif;
  --auth-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
}

.auth-page {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--auth-brown);
  background-color: #fff7f7;
  font-family: var(--auth-sans);
  -webkit-font-smoothing: antialiased;
}

.auth-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 20px;
  overflow: hidden;
  background-color: #fbf4f3;
  background-image: url("../assets/images/auth-bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 252, .06), rgba(248, 238, 238, .18));
  content: "";
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 248, .12);
}

.auth-content {
  position: relative;
  z-index: 1;
  width: min(100%, 750px);
  padding-inline: 16px;
  text-align: center;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto 8px;
  padding: 0;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(24px);
  animation: authFadeUp 1s cubic-bezier(.22, .72, .24, 1) .2s forwards;
}

.auth-text-image {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
  margin: 0 auto;
}

.auth-text-image[alt] {
  color: transparent;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authButtonsFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: authButtonsFadeUp .95s cubic-bezier(.22, .72, .24, 1) .45s forwards;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(180, 120, 140, .16);
  font-family: var(--auth-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-button:hover {
  transform: translateY(-2px);
}

.auth-exit {
  color: var(--auth-brown);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(220, 150, 170, .45);
}

.auth-enter {
  color: #fff;
  background: linear-gradient(135deg, #c77988, #ad5e6e);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 12px 28px rgba(157, 88, 103, .24), inset 0 0 0 3px rgba(255,255,255,.12);
}

.auth-button:focus-visible {
  outline: 3px solid rgba(191,112,128,.32);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .auth-screen {
    align-items: center;
    padding: 28px 18px;
  }

  .auth-card {
    margin-bottom: 8px;
  }

  .auth-buttons {
    gap: 12px;
  }

  .auth-button {
    min-width: 120px;
    min-height: 52px;
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .auth-buttons {
    gap: 9px;
  }

  .auth-button {
    min-width: 108px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .auth-buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .auth-button {
    transition: none;
  }

  .auth-button:hover {
    transform: none;
  }
}
