:root {
  --auth-yellow: #ffd84d;
  --auth-orange: #ff9d2e;
  --auth-coral: #ff765f;
  --auth-sky: #67c8f5;
  --auth-navy: #12304a;
  --auth-serif: "Noto Serif JP", "Yu Mincho", serif;
  --auth-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

.auth-page {
  min-height: 100svh;
  overflow: hidden;
  color: var(--auth-navy);
  background: #fffaf6;
  font-family: var(--auth-sans);
  -webkit-font-smoothing: antialiased;
}

.auth-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #fffdf2;
  background-image: url("../assets/images/index-bg-top-v2.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.auth-screen::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, .02);
  content: "";
  pointer-events: none;
}

.auth-gradient {
  position: absolute;
  inset: -18%;
  z-index: 0;
  overflow: hidden;
  opacity: .6;
  pointer-events: none;
}

.auth-gradient__blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: authBlobRotate 34s linear infinite;
  will-change: transform;
}

.auth-gradient__blob::before {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.auth-gradient__blob:nth-child(1) {
  animation-duration: 34s;
}

.auth-gradient__blob:nth-child(1)::before {
  top: -42vmax;
  left: -34vmax;
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(circle, rgba(103, 200, 245, .42) 0%, rgba(174, 225, 248, .24) 38%, rgba(103, 200, 245, 0) 70%);
}

.auth-gradient__blob:nth-child(2) {
  animation-duration: 29s;
  animation-direction: reverse;
}

.auth-gradient__blob:nth-child(2)::before {
  top: -8vmax;
  left: 9vmax;
  width: 54vmax;
  height: 54vmax;
  background: radial-gradient(circle, rgba(255, 216, 77, .38) 0%, rgba(255, 231, 139, .22) 40%, rgba(255, 216, 77, 0) 72%);
}

.auth-gradient__blob:nth-child(3) {
  animation-duration: 25s;
}

.auth-gradient__blob:nth-child(3)::before {
  top: 14vmax;
  left: -8vmax;
  width: 46vmax;
  height: 46vmax;
  background: radial-gradient(circle, rgba(255, 157, 46, .22) 0%, rgba(255, 190, 114, .14) 42%, rgba(255, 157, 46, 0) 72%);
}

.auth-content,
.auth-visual {
  position: absolute;
  inset: 0;
}

.auth-content {
  z-index: 2;
}

.auth-visual {
  bottom: calc(132px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.auth-woman {
  display: block;
  width: auto;
  height: min(84svh, 100%);
  max-height: 100%;
  max-width: 96vw;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 26px rgba(18, 48, 74, .1));
  animation: womanFadeIn .8s ease-out both;
}

.auth-actions {
  position: absolute;
  z-index: 3;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 24px), 380px);
  padding: 10px 10px 8px;
    transform: translateX(-50%);
  /* background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 253, 244, .72));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(18, 48, 74, .14);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px); */
}

.auth-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.auth-age-note {
  width: 100%;
  margin: 8px 0 0;
  padding: 2px 4px 0;
  color: #52697a;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: var(--auth-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.auth-exit {
  color: var(--auth-navy);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(103, 200, 245, .58);
  box-shadow: 0 10px 25px rgba(18, 48, 74, .12);
}

.auth-enter {
  color: var(--auth-navy);
  background: linear-gradient(135deg, var(--auth-yellow), var(--auth-orange) 56%, var(--auth-coral));
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(255, 118, 95, .26), inset 0 0 0 3px rgba(255, 255, 255, .14);
}

.auth-button:focus-visible {
  outline: 3px solid rgba(103, 200, 245, .42);
  outline-offset: 4px;
}

@keyframes womanFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes authBlobRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .auth-gradient {
    opacity: .42;
  }

  .auth-woman {
    height: 100%;
    max-width: 104vw;
  }

  .auth-visual {
    bottom: calc(126px + env(safe-area-inset-bottom));
  }

  .auth-actions {
    width: min(calc(100% - 20px), 380px);
    padding: 8px 8px 7px;
    border-radius: 25px;
  }

  .auth-button {
    min-height: 50px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gradient__blob {
    animation: none;
  }

  .auth-woman {
    animation: none;
  }

  .auth-button {
    transition: none;
  }
}
