/* LexiangAuthPage 样式（webview 方案） */
.lexiang-auth-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.lexiang-auth-page__webview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lexiang-auth-page__webview-container webview {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  min-height: 0;
}
.lexiang-auth-page__loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f8f8f8;
  z-index: 1;
}
.lexiang-auth-page__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e2e2;
  border-top-color: #4ecba0;
  border-radius: 50%;
  animation: lexiang-auth-spin 0.8s linear infinite;
}
@keyframes lexiang-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
.lexiang-auth-page__status-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.lexiang-auth-page__status-icon {
  width: 48px;
  height: 48px;
}
.lexiang-auth-page__status-icon[data-variant='warning'] {
  color: #f59e0b;
}
.lexiang-auth-page__status-icon[data-variant='error'] {
  color: #ef4444;
}
.lexiang-auth-page__status-icon[data-variant='success'] {
  color: #4ecba0;
}
.lexiang-auth-page__status-icon svg {
  width: 100%;
  height: 100%;
}
.lexiang-auth-page__status-title {
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  line-height: 1.4;
}
.lexiang-auth-page__status-desc {
  font-size: 13px;
  color: var(--cb-text-secondary, #888);
  line-height: 1.5;
  max-width: 360px;
}
.lexiang-auth-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.lexiang-auth-page__primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 99px;
  height: 36px;
  min-width: 88px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  background-color: #4ecba0;
  color: #ffffff;
  transition: background-color 120ms ease;
}
.lexiang-auth-page__primary-btn:hover {
  background-color: #45b890;
}
.lexiang-auth-page__secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 99px;
  height: 36px;
  min-width: 88px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  background-color: #ffffff;
  color: #222222;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.lexiang-auth-page__secondary-btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}
.lexiang-auth-page__link-btn {
  background: transparent;
  border: none;
  color: var(--cb-text-secondary, #888);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lexiang-auth-page__link-btn:hover {
  color: var(--cb-text-primary, #222);
}
.lexiang-auth-page__bottom-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}
/* Dark Mode */
.cb-dark .lexiang-auth-page__loading-overlay,
.dark .lexiang-auth-page__loading-overlay {
  background: #1e1e1e;
}
.cb-dark .lexiang-auth-page__spinner,
.dark .lexiang-auth-page__spinner {
  border-color: #3c3c3c;
  border-top-color: #4ecba0;
}
.cb-dark .lexiang-auth-page__status-title,
.dark .lexiang-auth-page__status-title {
  color: #d2d3e0;
}
.cb-dark .lexiang-auth-page__bottom-bar,
.dark .lexiang-auth-page__bottom-bar {
  background: #252525;
  border-top-color: #3c3c3c;
}
.cb-dark .lexiang-auth-page__secondary-btn,
.dark .lexiang-auth-page__secondary-btn {
  background-color: #3c3c3c;
  color: #d2d3e0;
  border-color: #555;
}
.cb-dark .lexiang-auth-page__secondary-btn:hover,
.dark .lexiang-auth-page__secondary-btn:hover {
  background-color: #4a4a4a;
  border-color: #666;
}
.cb-dark .lexiang-auth-page__link-btn,
.dark .lexiang-auth-page__link-btn {
  color: var(--cb-text-muted, #858699);
}
.cb-dark .lexiang-auth-page__link-btn:hover,
.dark .lexiang-auth-page__link-btn:hover {
  color: var(--cb-text-primary, #d2d3e0);
}
