/* 词元工作室 · 统一登录页（亮色） */

.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "LXGW WenKai", "霞鹜文楷", KaiTi, "楷体", serif;
  color: #0f172a;
  background: linear-gradient(165deg, #f7f8fa 0%, #f8fafc 42%, #f0f1f4 100%);
  -webkit-font-smoothing: antialiased;
}

.login-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: login-orb-float 18s ease-in-out infinite;
}

.login-orb-1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
}

.login-orb-2 {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
  animation-delay: -6s;
}

.login-orb-3 {
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  top: 42%;
  left: 58%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes login-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, 3%) scale(1.05);
  }
}

.studio-page-auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

.studio-page-auth-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.studio-page-auth-card {
  padding: 2.5rem 2.15rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow:
    0 24px 48px rgba(79, 70, 229, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.studio-page-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.studio-page-auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.22),
    0 0 0 1px rgba(99, 102, 241, 0.08);
}

.studio-page-auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.1));
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.studio-page-auth-title {
  margin: 0;
  text-align: center;
  font-family: "LXGW WenKai", "霞鹜文楷", KaiTi, "楷体", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.2;
  background: linear-gradient(90deg, #003d8a 0%, #0054b4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.2));
}

.studio-page-auth-desc {
  margin: 0.45rem 0 1.6rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.studio-page-auth-desc a {
  color: #003d8a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.studio-page-auth-desc a:hover {
  color: #4338ca;
}

.studio-page-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.studio-page-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.studio-page-auth-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #475569;
  letter-spacing: 0.5px;
}

.studio-page-auth-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.studio-page-auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.studio-page-auth-field input::placeholder {
  color: #94a3b8;
}

.studio-page-auth-field input:focus {
  outline: none;
  border-color: #4db0d8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.studio-page-auth-pw-wrap {
  position: relative;
}

.studio-page-auth-pw-wrap input {
  padding-right: 3.25rem;
}

.studio-page-auth-pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.studio-page-auth-pw-toggle:hover {
  color: #003d8a;
  background: rgba(99, 102, 241, 0.08);
}

.studio-page-auth-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  line-height: 1.45;
}

.studio-page-auth-error[hidden] {
  display: none;
}

.studio-page-auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 14px;
  background: #0054b4;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.studio-page-auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.studio-page-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.34);
}

.studio-page-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.studio-page-auth-footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  font-size: 0.8125rem;
}

@media (max-width: 480px) {
  .studio-page-auth-card {
    padding: 2rem 1.35rem 1.75rem;
    border-radius: 20px;
  }

  .studio-page-auth-title {
    font-size: 1.45rem;
  }
}

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

  .studio-page-auth-submit:hover:not(:disabled) {
    transform: none;
  }
}
