/* Auth pages (login / register) — matches the main site's palette:
   white ground with a green brand color (#10b981 / #059669), the same
   neutral text/line tokens the app uses, so the auth screens feel like
   the same product. Applied to the site's own 10086ai brand.
   Self-contained: does NOT load the main style.css. Scoped under .auth-body. */

:root {
  --ds-blue: #10b981;
  --ds-blue-hover: #059669;
  --ds-blue-active: #047857;
  --ds-bg-top: #ecfdf5;
  --ds-bg-bottom: #ffffff;
  --ds-text: #111827;
  --ds-muted: #6b7280;
  --ds-label: #374151;
  --ds-border: #e5e7eb;
  --ds-input-bg: #f9fafb;
  --ds-input-bg-focus: #ffffff;
  --ds-error: #ef4444;
  --ds-tagline: #9ca3af;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  color: var(--ds-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
}

/* Left panel: brand + form, on a clean white ground, vertically centered.
   Placed on the RIGHT visually via order (globe on the left). */
.auth-left {
  flex: 0 0 46%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  order: 2;
}

/* Right panel: the animated tech globe on a faint blue gradient.
   Placed on the LEFT via order. */
.auth-right {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5 0%, #f3fdf8 45%, #ffffff 100%);
  border-right: 1px solid var(--ds-border);
  order: 1;
}

#auth-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* On narrow screens the split collapses: hide the globe panel, center the
   form full-width so the page stays usable on phones. */
@media (max-width: 860px) {
  .auth-body { flex-direction: column; }
  .auth-left { flex: 1 1 auto; max-width: none; width: 100%; }
  .auth-right { display: none; }
}

/* --- brand block: wordmark + tagline, centered above the card --- */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.auth-wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ds-text);
}

.auth-tagline {
  font-size: 15px;
  color: var(--ds-tagline);
  letter-spacing: 0.02em;
}

/* --- card --- */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.05);
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  text-align: center;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--ds-muted);
  text-align: center;
  margin: 0 0 24px;
}

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

.auth-label {
  display: block;
  font-size: 13px;
  color: var(--ds-label);
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--ds-input-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ds-text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder { color: #b3b7c0; }

.auth-input:focus {
  background: var(--ds-input-bg-focus);
  border-color: var(--ds-blue);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.auth-btn {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  background: var(--ds-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-btn:hover { background: var(--ds-blue-hover); }
.auth-btn:active { background: var(--ds-blue-active); }

.auth-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.auth-notice {
  background: #ecfdf3;
  border: 1px solid #a6f0c6;
  color: #067647;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ds-muted);
}

.auth-footer a {
  color: var(--ds-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover { color: var(--ds-blue-hover); text-decoration: underline; }

.auth-hint {
  font-size: 12px;
  color: #b3b7c0;
  margin-top: 6px;
}

/* SMS code field: input + "获取验证码" button on one row. */
.auth-code-row {
  display: flex;
  gap: 8px;
}
.auth-code-row .auth-input { flex: 1 1 auto; }
.auth-code-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--ds-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-code-btn:hover:not(:disabled) { background: var(--ds-blue); color: #fff; }
.auth-code-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-legal {
  margin-top: 26px;
  max-width: 380px;
  text-align: center;
  font-size: 12px;
  color: #b3b7c0;
  line-height: 1.6;
}
.auth-legal a { color: #8b909a; text-decoration: none; }
.auth-legal a:hover { color: var(--ds-blue); }

/* Right-panel caption over the globe. */
.auth-caption {
  position: absolute;
  left: 56px;
  bottom: 56px;
  z-index: 1;
  max-width: 440px;
}
.auth-caption h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2a3140;
  text-shadow: 0 2px 20px rgba(16, 185, 129, 0.12);
}
.auth-caption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}
.auth-caption .auth-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-caption .auth-chip {
  font-size: 12px;
  color: var(--ds-blue);
  border: 1px solid rgba(16, 185, 129, 0.30);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
}
@media (max-width: 1100px) { .auth-caption { display: none; } }

/* Top-left status pill on the globe panel. */
.auth-status {
  position: absolute;
  top: 40px;
  left: 56px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
}
.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.6);
  animation: auth-pulse 2s infinite;
}
@keyframes auth-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 181, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0); }
}
@media (max-width: 1100px) { .auth-status { display: none; } }
