/* WOG AI — 登录 / 注册页（严格复用 shared.css Design System） */

/* 统一盒模型：auth 页面内 width:100% + padding 不溢出（shared.css 未设全局 border-box） */
.auth-body, .auth-body *, .auth-body *::before, .auth-body *::after {
  box-sizing: border-box;
}
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--wog-bg);
}

.auth-back {
  position: fixed;
  top: 20px;
  left: 24px;
  font-size: 13.5px;
  color: var(--wog-muted);
  text-decoration: none;
  transition: color var(--wog-dur-fast) var(--wog-ease);
}

.auth-back:hover { color: var(--wog-text); }

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 44px 40px 36px;
  background: var(--wog-surface);
  border: 1px solid var(--wog-border);
  border-radius: var(--wog-radius-xl);
  box-shadow: var(--wog-shadow-lg);
  animation: wog-fade-up .3s var(--wog-ease);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 26px;
}

.auth-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--wog-text);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--wog-text);
  letter-spacing: .2px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--wog-text);
  text-align: center;
}

.auth-sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--wog-muted);
  text-align: center;
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wog-text-2);
}

.auth-optional {
  font-weight: 400;
  color: var(--wog-muted);
}

.auth-error,
.auth-notice {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: var(--wog-radius-md);
  font-size: 13px;
  line-height: 1.45;
}

.auth-error {
  background: var(--wog-error-bg);
  color: var(--wog-error);
}

.auth-notice {
  background: var(--wog-success-bg);
  color: var(--wog-success);
}

.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--wog-radius-md);
}

.auth-switch {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--wog-muted);
  text-align: center;
}

.auth-switch a {
  color: var(--wog-accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-back { position: static; margin-bottom: 14px; }
  .auth-card { padding: 36px 24px 30px; }
}

/* ---------- Account 页 ---------- */

.account-card { max-width: 440px; }

.account-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--wog-surface-2);
  border: 1px solid var(--wog-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--wog-text);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-ro {
  margin: 6px 0 20px;
  border: 1px solid var(--wog-border);
  border-radius: var(--wog-radius-md);
  overflow: hidden;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  font-size: 13.5px;
}

.account-row + .account-row { border-top: 1px solid var(--wog-border); }

.account-row span { color: var(--wog-muted); flex-shrink: 0; }

.account-row b {
  font-weight: 600;
  color: var(--wog-text);
  text-align: right;
  overflow-wrap: anywhere;
}

.account-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
}

.account-signout { margin-top: 10px; }
