html,
body.login-auth-page {
  min-height: 100dvh;
  overflow-x: hidden;
}

body.login-auth-page {
  margin: 0;
  background:
    radial-gradient(90% 60% at 12% 8%, rgba(255, 45, 120, 0.18), transparent 55%),
    radial-gradient(80% 50% at 90% 90%, rgba(245, 197, 24, 0.12), transparent 50%),
    var(--app-bg, #0b0b0f);
  font-family: var(--app-font, "Outfit", "Noto Sans SC", sans-serif);
  padding: 1rem;
  padding-bottom: calc(1rem + 72px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text, #f4f4f7);
  box-sizing: border-box;
}

body.login-auth-page.has-tabbar {
  padding-bottom: calc(1rem + 72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  body.login-auth-page,
  body.login-auth-page.has-tabbar {
    padding-bottom: 1rem;
  }
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.bg-glow-1,
.bg-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 280px;
  height: 280px;
  background: #ff2d78;
  top: 8%;
  left: 0%;
}

.bg-glow-2 {
  width: 300px;
  height: 300px;
  background: #f5c518;
  bottom: 6%;
  right: 0%;
  opacity: 0.22;
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(21, 21, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.logincard-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.logincard-head img {
  display: block;
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.logincard-head .brand-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--app-text, #f4f4f7);
  font-weight: 700;
  font-family: var(--app-font-display, inherit);
}

.logincard-head .brand-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--app-text-muted, #6e6e80);
}

.form-item {
  margin-bottom: 1.15rem;
}

.form-item label {
  display: block;
  color: var(--app-text-secondary, #a1a1b2);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.input-box {
  position: relative;
}

.input-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--app-text-muted, #6e6e80);
  pointer-events: none;
}

.input-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.input-box input:focus {
  border-color: rgba(255, 45, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.16);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1.35rem;
  color: var(--app-text-secondary, #a1a1b2);
  font-size: 0.85rem;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #ff2d78, #e11d64);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 45, 120, 0.28);
  transition:
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease;
}

.btn-red:hover {
  filter: brightness(1.05);
}

.btn-red:active {
  transform: scale(0.97);
}

.btn-red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reg-tip {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--app-text-muted, #6e6e80);
}

.reg-tip a {
  color: var(--app-accent, #ff2d78);
  text-decoration: none;
  margin-left: 0.25rem;
  font-weight: 600;
}

.reg-tip a:hover {
  text-decoration: underline;
}

.copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--app-text-muted, #6e6e80);
  opacity: 0.85;
}

.auth-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 100;
  display: none;
  max-width: 90vw;
  backdrop-filter: blur(10px);
}

.auth-toast.show {
  display: block;
  animation: appEnterUp 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-toast.error {
  background: rgba(127, 29, 29, 0.92);
  color: #fecaca;
  border: 1px solid #991b1b;
}

.auth-toast.success {
  background: rgba(20, 83, 45, 0.92);
  color: #bbf7d0;
  border: 1px solid #166534;
}

.auth-toast.info {
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
  border: 1px solid #475569;
}
