body.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

body.login-body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 22% 18%, rgba(106, 169, 255, 0.24), transparent 70%),
    radial-gradient(closest-side at 82% 68%, rgba(77, 141, 255, 0.26), transparent 72%),
    radial-gradient(closest-side at 46% 108%, rgba(192, 123, 255, 0.16), transparent 70%);
  filter: blur(28px);
  animation: aurora 22s var(--ease-ios, ease) infinite alternate;
}

@keyframes aurora {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

.login-wrap {
  width: min(400px, 100%);
}

.login-card {
  position: relative;
  padding: 24px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  animation: login-in 0.5s var(--ease-spring, ease) both;
}

@keyframes login-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.login-done .login-card {
  animation: login-out 0.24s var(--ease-ios, ease) both;
}

@keyframes login-out {
  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.login-logo {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background-image: linear-gradient(160deg, #4f8bff, #2b5bd7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-title {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.login-sub {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.login-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(12, 15, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s var(--ease-ios, ease),
    box-shadow 0.25s var(--ease-ios, ease),
    background 0.2s var(--ease-ios, ease);
}

.login-input:focus {
  border-color: rgba(122, 167, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.16);
  background: rgba(12, 15, 21, 0.85);
}

.login-btn {
  position: relative;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  background-image: linear-gradient(160deg, #4f8bff, #2b5bd7);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-spring, ease),
    filter 0.18s var(--ease-ios, ease),
    box-shadow 0.2s var(--ease-ios, ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-btn:hover {
  filter: brightness(1.06);
}

.login-btn:active {
  transform: scale(0.975);
}

.login-btn:disabled {
  cursor: default;
  filter: saturate(0.7) brightness(0.9);
}

.login-btn-text {
  transition: opacity 0.16s var(--ease-ios, ease);
}

.login-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  opacity: 0;
  transition: opacity 0.16s var(--ease-ios, ease);
}

.login-btn.loading .login-btn-text {
  opacity: 0;
}

.login-btn.loading .login-spinner {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

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

.remember-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-ios, ease),
    background 0.2s var(--ease-ios, ease);
}

.remember-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.remember-row:has(input:checked) {
  border-color: rgba(122, 167, 255, 0.45);
  background: rgba(77, 141, 255, 0.1);
}

.remember-row input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #5c98ff;
  cursor: pointer;
}

.remember-row b {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.remember-desc {
  display: block;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted);
}

.preview-cta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(150deg, rgba(106, 169, 255, 0.18), rgba(192, 123, 255, 0.14));
  border: 1px solid rgba(140, 175, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(40, 80, 160, 0.24);
  transition:
    transform 0.2s var(--ease-spring, ease),
    border-color 0.2s var(--ease-ios, ease),
    filter 0.18s var(--ease-ios, ease);
}

.preview-cta:hover {
  border-color: rgba(160, 195, 255, 0.7);
  filter: brightness(1.07);
}

.preview-cta:active {
  transform: scale(0.985);
}

.preview-cta-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #cfe2ff;
  background: rgba(255, 255, 255, 0.13);
}

.preview-cta-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.preview-cta-text b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.preview-cta-tag {
  flex: none;
  padding: 1px 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0e1723;
  background: linear-gradient(160deg, #a9d3ff, #7fb6ff);
  border-radius: 999px;
}

.preview-cta-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.73rem;
  color: #b9c9e2;
}

.preview-cta-arrow {
  flex: none;
  font-size: 1rem;
  color: #cfe2ff;
  transition: transform 0.2s var(--ease-spring, ease);
}

.preview-cta:hover .preview-cta-arrow {
  transform: translateX(3px);
}

.login-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #dcc6ff;
  background: rgba(109, 40, 217, 0.18);
  border: 1px solid rgba(109, 40, 217, 0.4);
  border-radius: 10px;
  animation: err-in 0.3s var(--ease-spring, ease) both;
}

@keyframes err-in {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
}

.login-warn {
  margin: 14px 0 0;
  padding: 11px 13px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cfe6ff;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-left: 3px solid rgba(125, 211, 252, 0.75);
  border-radius: 10px;
}
.login-warn strong {
  color: #a9ddff;
  font-weight: 700;
}
.login-warn b {
  color: #a9ddff;
  font-weight: 700;
}

.login-hint {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.login-hint a {
  color: #ffd6d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 131, 255, 0.35);
}

.login-hint a:hover {
  color: #fff;
  border-bottom-color: rgba(168, 131, 255, 0.7);
}

.login-card.shake {
  animation: shake 0.42s var(--ease-ios, ease);
}

@keyframes shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-7px, 0, 0);
  }
  40% {
    transform: translate3d(6px, 0, 0);
  }
  60% {
    transform: translate3d(-4px, 0, 0);
  }
  80% {
    transform: translate3d(3px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.login-logo[data-skin-badge] > svg,
.brand-mark[data-skin-badge] > svg,
.login-logo[data-skin-badge] > img,
.brand-mark[data-skin-badge] > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
