/* 静态页面补齐线上 Element Plus 组件提供的基础样式 */
.cta,
.ghost,
.auth-submit,
.btn-home,
.btn-nav {
  font-family: inherit;
  cursor: pointer;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #334155;
}

.cta-group > .cta,
.cta-group > .ghost {
  width: 100%;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.auth-overlay[hidden] {
  display: none !important;
}

.auth-dialog {
  width: 100%;
  max-width: 440px;
}

.auth-close {
  cursor: pointer;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.code-input {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  background: #fff;
  text-align: center;
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.code-input:focus {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3), 0 8px 24px rgba(14, 165, 233, 0.15);
}

.code-input::placeholder {
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
  color: #94a3b8;
}

.auth-submit {
  color: #fff;
}

.auth-submit:disabled {
  cursor: not-allowed;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(14, 165, 233, 0.15);
  border-top-color: #0ea5e9;
  animation: animalSpin 0.9s linear infinite;
}

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

.error-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

.error-container h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.error-container p {
  margin: 0;
  max-width: 560px;
  text-align: center;
  color: #64748b;
}

.error-tips {
  margin-top: 20px;
  max-width: 560px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  color: #475569;
}

.error-tips .tips-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0369a1;
}

.error-tips .tips-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.error-tips .tips-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #0ea5e9;
}

.btn-home {
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.incomplete-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 14px;
}

.option-item {
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  animation: toastIn 0.25s ease;
}

.toast.success {
  background: rgba(4, 120, 87, 0.92);
}

.toast.warning {
  background: rgba(180, 83, 9, 0.92);
}

.toast.error {
  background: rgba(185, 28, 28, 0.92);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
