/* ログイン画面のみ読み込み */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-page {
  margin: 0;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #e8ecf4;
  background: #0a0e17;
  position: relative;
  overflow-x: hidden;
}

.auth-page__glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.auth-page__glow--1 {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, #3d7cff, #1a4fd6 45%, transparent 70%);
}

.auth-page__glow--2 {
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  bottom: -18%;
  left: -12%;
  background: radial-gradient(circle at 70% 60%, #00c2a8, #007a8c 50%, transparent 72%);
}

.auth-page__grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.auth-page__main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(16, 22, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card__header {
  padding: 2rem 2rem 0.25rem;
  text-align: center;
}

.auth-card__badge {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ab4ff;
  background: rgba(61, 124, 255, 0.12);
  border: 1px solid rgba(61, 124, 255, 0.25);
  border-radius: 999px;
}

.auth-card__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f6fb;
}

.auth-card__lead {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(232, 236, 244, 0.55);
}

.auth-card__body {
  padding: 1.75rem 2rem 2.25rem;
}

.auth-message {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.auth-message--error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(232, 236, 244, 0.75);
}

.auth-field input {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.95rem;
  font: inherit;
  color: #f4f6fb;
  background: rgba(8, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-field input::placeholder {
  color: rgba(232, 236, 244, 0.28);
}

.auth-field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-field input:focus {
  border-color: rgba(61, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.2);
  background: rgba(8, 12, 22, 0.85);
}

.auth-submit {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a0e17;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b9dff 0%, #2d6bff 50%, #00b4a8 130%);
  box-shadow: 0 8px 28px rgba(45, 107, 255, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.auth-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 32px rgba(45, 107, 255, 0.42);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-page__footnote {
  margin: 1.75rem 0 0;
  font-size: 0.75rem;
  color: rgba(232, 236, 244, 0.28);
  text-align: center;
}

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

  .auth-submit:active {
    transform: none;
  }
}
