/* Park by TOKYO — パステルブルー・ガーリーログイン */

:root {
  --brand-theme: #7ec5f5;
  --brand-theme-light: #a8d8ff;
  --brand-accent: #ffb3d1;
  --park-sky: #cfebff;
  --park-sky-2: #e7d6ff;
  --park-pink: #ffd6e7;
  --park-ink: #4a5b7a;
  --park-white: #ffffff;
}

body.brand-park,
body.brand-park html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "M PLUS Rounded 1c", "Quicksand", "Hiragino Maru Gothic ProN", "Segoe UI", sans-serif;
  background-color: var(--park-sky);
  color: var(--park-ink);
}

body.brand-park {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.35s ease-in-out;
}

body.brand-park.page-loading {
  opacity: 0;
}

/* ===== 背景（動くパステルグラデーション） ===== */
#park-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #d5ecff 0%, #e9dcff 35%, #ffe3f0 70%, #d9f2ff 100%);
  background-size: 300% 300%;
  animation: park-gradient 18s ease infinite;
}

@keyframes park-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ふわふわ浮かぶバブル */
.park-bubble {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(180, 220, 255, 0.35) 60%, rgba(255, 179, 209, 0.2) 100%);
  box-shadow: 0 4px 16px rgba(126, 197, 245, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: park-rise var(--rise-duration) linear infinite;
  will-change: transform, opacity;
}

@keyframes park-rise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: var(--bubble-opacity); }
  50%  { transform: translateY(-55vh) translateX(var(--sway)) scale(1); }
  90%  { opacity: var(--bubble-opacity); }
  100% { transform: translateY(-110vh) translateX(0) scale(0.9); opacity: 0; }
}

/* キラキラ（点滅する星） */
.park-sparkle {
  position: absolute;
  color: #fff;
  opacity: var(--sparkle-opacity);
  animation: park-twinkle var(--twinkle-duration) ease-in-out infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

@keyframes park-twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: calc(var(--sparkle-opacity) * 0.4); }
  50%      { transform: scale(1.15) rotate(20deg); opacity: 1; }
}

/* たまに流れるハート（WOLの流れ星に相当） */
.park-heart {
  position: fixed;
  top: -40px;
  color: var(--brand-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 143, 184, 0.5));
  animation: park-fall 5s linear;
  will-change: transform, opacity;
}

@keyframes park-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(40deg); opacity: 0; }
}

/* ===== ログインカード ===== */
.brand-park .login-wrap {
  width: 100%;
  max-width: 400px;
  padding: 44px 24px;
  z-index: 1;
  position: relative;
  box-sizing: border-box;
}

.brand-park .brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  animation: park-float 6s ease-in-out infinite;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-park .logo-img {
  max-width: 240px;
  width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(126, 197, 245, 0.35));
}

@keyframes park-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.brand-park ::selection {
  background: var(--brand-accent);
  color: #fff;
}

.brand-park .card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 50px rgba(126, 197, 245, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 40px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.brand-park .card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 214, 231, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.brand-park .page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  color: var(--park-ink);
  position: relative;
}

.brand-park .sub-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--brand-theme);
  margin-bottom: 32px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
}

.brand-park form { width: 100%; position: relative; }
.brand-park .field { margin-bottom: 18px; width: 100%; }

.brand-park .input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(168, 216, 255, 0.6);
  border-radius: 999px;
  padding: 15px 20px;
  color: var(--park-ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  text-align: center;
  -webkit-appearance: none;
}

.brand-park .input::placeholder {
  color: rgba(122, 146, 180, 0.6);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.brand-park .input:focus {
  background: #fff;
  border-color: var(--brand-accent);
  box-shadow: 0 6px 18px rgba(255, 179, 209, 0.35);
}

.brand-park .btn {
  cursor: pointer;
  border: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  -webkit-appearance: none;
  font-family: inherit;
  border-radius: 999px;
}

.brand-park .btn:active { transform: scale(0.97); }

.brand-park .btn-primary {
  background: linear-gradient(135deg, var(--brand-theme-light) 0%, var(--brand-accent) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(126, 197, 245, 0.4);
  margin-top: 12px;
  text-shadow: 0 1px 2px rgba(126, 150, 200, 0.25);
}

.brand-park .btn-primary:hover {
  box-shadow: 0 14px 32px rgba(255, 179, 209, 0.5);
  filter: brightness(1.04);
}

.brand-park .divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 216, 255, 0.7), transparent);
  margin: 26px 0;
}

.brand-park .btn-line {
  background: #06c755;
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
  display: none;
}

.brand-park .btn-line.line-browser {
  display: inline-block;
}

.brand-park .btn-line:hover {
  filter: brightness(1.05);
}

.brand-park .alert-err {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: rgba(255, 179, 209, 0.25);
  border: 2px solid rgba(255, 143, 184, 0.5);
  color: #c85a86;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.brand-park .alert-info {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(168, 216, 255, 0.3);
  border: 2px solid rgba(126, 197, 245, 0.4);
  border-radius: 16px;
  font-size: 0.85rem;
  color: #5a7bab;
  font-weight: 600;
}

.brand-park .loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(223, 240, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.brand-park .loading-overlay.active {
  display: flex;
  opacity: 1;
}

.brand-park .loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(168, 216, 255, 0.4);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: park-spin 0.8s linear infinite;
}

@keyframes park-spin {
  to { transform: rotate(360deg); }
}

body.brand-park.loading {
  overflow: hidden;
}

body.brand-park.loading .park-bubble,
body.brand-park.loading .park-sparkle,
body.brand-park.loading .park-heart,
body.brand-park.loading .brand-mark {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  #park-bg,
  .park-bubble,
  .park-sparkle,
  .park-heart,
  .brand-park .brand-mark {
    animation: none !important;
  }
}

@media screen and (max-width: 480px) {
  .brand-park .login-wrap { padding: 32px 20px; max-width: 100%; }
  .brand-park .card { padding: 34px 26px 30px; border-radius: 28px; }
  .brand-park .logo-img { max-width: 200px; }
  .brand-park .brand-mark { margin-bottom: 22px; }
  .brand-park .page-title { font-size: 27px; }
  .brand-park .input { padding: 14px 18px; }
}

@media screen and (max-height: 750px) {
  .brand-park .login-wrap { padding: 22px 16px; }
  .brand-park .card { padding: 26px 22px; }
  .brand-park .logo-img { max-width: 200px; }
  .brand-park .page-title { font-size: 26px; }
  .brand-park .sub-title { margin-bottom: 22px; }
  .brand-park .field { margin-bottom: 14px; }
}
