/* ===== 登录页 ===== */
.login-body {
  background: linear-gradient(180deg, #020818 0%, #050a1b 35%, #030610 100%);
}

.login-page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 背景 */
.login-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.login-bg-bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 200, 255, 0.12) 0%, transparent 8%),
    radial-gradient(circle at 85% 15%, rgba(0, 150, 255, 0.08) 0%, transparent 6%),
    radial-gradient(circle at 70% 60%, rgba(0, 100, 200, 0.06) 0%, transparent 10%),
    radial-gradient(circle at 25% 70%, rgba(0, 242, 255, 0.05) 0%, transparent 7%);
}

.login-globe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  max-width: 520px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}

.login-globe-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 180, 255, 0.25));
}

/* 主内容 */
.login-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(28vh + var(--safe-top, 0px)) 28px calc(32px + var(--safe-bottom, 0px));
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 4px 24px rgba(0, 120, 200, 0.25),
    0 0 20px rgba(0, 242, 255, 0.12);
}

.login-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-company {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(0, 242, 255, 0.45);
  line-height: 1.5;
}

/* 输入框 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: rgba(0, 242, 255, 0.95);
  background: rgba(5, 15, 40, 0.75);
  border: 1px solid rgba(0, 242, 255, 0.55);
  border-radius: 24px;
  outline: none;
  box-shadow:
    0 0 12px rgba(0, 242, 255, 0.08),
    inset 0 0 20px rgba(0, 80, 120, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input::placeholder {
  color: rgba(0, 242, 255, 0.45);
}

.login-field input:focus {
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 16px rgba(0, 242, 255, 0.2),
    inset 0 0 24px rgba(0, 100, 150, 0.1);
}

/* 滑动登录 */
.slide-login {
  position: relative;
  margin-top: 8px;
  height: 48px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slide-login__track {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(0, 242, 255, 0.55);
  background: rgba(5, 15, 40, 0.6);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.08);
}

.slide-login__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: rgba(0, 242, 255, 0.55);
  letter-spacing: 0.2em;
  pointer-events: none;
  z-index: 1;
}

.slide-login__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.15), rgba(0, 180, 255, 0.25));
  border-radius: 24px 0 0 24px;
  pointer-events: none;
  z-index: 0;
}

.slide-login__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  background: linear-gradient(145deg, #00f8ff, #00c8e8);
  box-shadow:
    0 0 16px rgba(0, 242, 255, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s;
}

.slide-login__thumb:active {
  cursor: grabbing;
}

.slide-login--success .slide-login__thumb {
  background: linear-gradient(145deg, #00ffaa, #00cc88);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.slide-login--success .slide-login__text {
  color: rgba(255, 255, 255, 0.9);
}

.slide-login__chevrons {
  font-size: 0.875rem;
  font-weight: 700;
  color: #021018;
  letter-spacing: -2px;
  line-height: 1;
}

@media (min-width: 481px) {
  .login-body {
    background: #010408;
  }

  .login-page {
    border-left: 1px solid rgba(0, 242, 255, 0.1);
    border-right: 1px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 60px rgba(0, 100, 200, 0.15);
  }
}
