/* Login — live / cinematic */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

.login-cinematic-body .sound_only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.login-cinematic,
html.login-cinematic body,
body.login-cinematic-body {
  --login-bg: #0a0a0c;
  --login-bg2: #141418;
  --login-text: #f2f2f2;
  --login-text2: #b7b7bc;
  --login-text3: #8a8a90;
  --login-accent: #ff5500;
  --login-accent-soft: rgba(255, 85, 0, 0.18);
  --login-line: rgba(255, 255, 255, 0.08);
  --login-field: rgba(255, 255, 255, 0.06);
  --login-field-focus: rgba(255, 255, 255, 0.1);
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--login-bg) !important;
  color: var(--login-text);
  font-family: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.login-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  isolation: isolate;
}

.login-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 85, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255, 120, 40, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 35% at 10% 70%, rgba(40, 40, 50, 0.9), transparent 55%),
    linear-gradient(180deg, #121216 0%, var(--login-bg) 45%, #080809 100%);
}

.login-stage__bg::before,
.login-stage__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: login-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.login-stage__bg::before {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: -8%;
  background: rgba(255, 85, 0, 0.16);
}

.login-stage__bg::after {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  right: -6%;
  bottom: 5%;
  background: rgba(255, 140, 60, 0.1);
  animation-delay: -6s;
  animation-duration: 18s;
}

.login-stage__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
  animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.login-brand__name {
  display: inline-block;
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--login-accent);
  text-decoration: none;
}

.login-brand__name:hover,
.login-brand__name:focus {
  color: #ff6a1a;
  outline: none;
}

.login-brand__tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--login-text2);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: login-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.login-field {
  position: relative;
}

.login-field input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  background: var(--login-field);
  color: var(--login-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-field input::placeholder {
  color: var(--login-text3);
}

.login-field input:hover {
  background: var(--login-field-focus);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(255, 85, 0, 0.55);
  background: var(--login-field-focus);
  box-shadow: 0 0 0 3px var(--login-accent-soft);
}

.login-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 4px 0 8px;
  font-size: 0.875rem;
  color: var(--login-text2);
}

.login-opts label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.login-opts input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--login-accent);
  cursor: pointer;
}

.login-btn {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--login-accent);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.login-btn:hover {
  background: #ff6a1a;
  filter: brightness(1.05);
}

.login-btn:active {
  transform: scale(0.985);
}

.login-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--login-accent-soft);
}

.login-register {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  background: transparent;
  color: var(--login-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.login-register:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

@keyframes login-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, -18px) scale(1.08); }
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-stage__bg::before,
  .login-stage__bg::after,
  .login-panel,
  .login-brand,
  .login-form {
    animation: none;
  }
}

@media (max-width: 480px) {
  .login-stage {
    padding: 28px 18px 40px;
    align-items: flex-start;
    padding-top: max(48px, 12vh);
  }

  .login-brand {
    margin-bottom: 24px;
  }
}
