* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; background: radial-gradient(ellipse at top, #0b0c1a, #090314 60%, #070012); color: #e6e6f0; }
header, footer { padding: 16px 24px; background: transparent; border-bottom: 0; }
main { padding: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1100px; margin: 0 auto; }
body.with-tabs main { grid-template-columns: 240px 1fr; align-items: start; }
body.dashboard-auth-pending #tabs,
body.dashboard-auth-pending .tab,
body.dashboard-logged-out #tabs,
body.dashboard-logged-out .tab {
  display: none !important;
}
body.dashboard-logged-in #loginCard {
  display: none !important;
}
body.dashboard-logged-out #loginCard,
body.dashboard-auth-pending #loginCard {
  display: block !important;
}
.tabs {
  display:flex;
  flex-direction: column;
  gap:8px;
  padding: 8px 12px;
  border-right:0;
  background: transparent;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  /* 左侧固定一列 */
  grid-column: 1 / 2;
  grid-row: 1 / 999;
}
.tab {
  /* 右侧内容列 */
  grid-column: 2 / 3;
}
.tabs .spacer { flex:1; }
.tabs button {
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #c0c2de;
  border-radius: 1px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.tabs button:hover {
  background: rgba(79, 70, 229, 0.16);
  color: #f9fafb;
}
.tabs button.active {
  background: #4f46e5;
  color: #ffffff;
}
.card {
  background: #121328;
  border: 0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}
.admin-sms-routing-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #2a2c45;
  border-radius: 8px;
  background: #12162d;
}
.admin-sms-routing-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-sms-routing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-sms-routing-table th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #2a2c45;
}
.admin-sms-provider-card {
  padding: 12px;
  border: 1px solid #2a2c45;
  border-radius: 8px;
  background: #101425;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.admin-sms-provider-card.active {
  border-color: #5b5fe5;
  box-shadow: 0 0 0 1px rgba(91, 95, 229, 0.35);
  background: #131936;
}
.admin-sms-provider-card.inactive {
  opacity: 0.72;
}
.admin-sms-provider-card.inactive form {
  display: none;
}
.admin-sms-callback-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-sms-callback-box code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
  background: #0b1020;
  border: 1px solid #2a2c45;
  color: #dbe4ff;
  word-break: break-all;
}
label { color:#b8b9cc; }
input, textarea, select {
  background:#0e0f22;
  color:#e8e9ff;
  border: 1px solid #34375e !important;
}
input:focus, textarea:focus, select:focus {
  background:#0e0f22;
  color:#e8e9ff;
  outline:none;
}
button { background:#5b5fe5; }
label { display:block; font-size: 14px; color: #b8b9cc; margin: 8px 0 4px; }
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
}
button { margin-top: 12px; padding: 10px 14px; background: #4f46e5; color: white; border: 0; border-radius: 6px; cursor: pointer; }
button[disabled] { background: #c7c9d3; cursor: not-allowed; }

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}
.pagination .page-info {
  opacity: 0.8;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.password-row input {
  flex: 1;
}

.profile-readonly {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 14px;
}
.profile-field {
  padding: 6px 8px;
  background: #0e0f22;
  border-radius: 8px;
}
.profile-label {
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 2px;
}
.profile-value {
  color: #e6e6f0;
  word-break: break-all;
}

/* ===== Landing page layout ===== */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.landing-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.landing-logo img {
  display: block;
  width: 120px;
  height: auto;
}
.landing-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.landing-nav a,
.landing-nav-more-btn,
.landing-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #e6e6f0;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.landing-nav a:hover,
.landing-link:hover {
  color: #aeb4ff;
}
.landing-nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.landing-nav-more-btn {
  position: relative;
  top: -6px;
}
.landing-nav-more-btn::after {
  content: '▾';
  margin-left: 4px;
  font-size: 14px;
}
.landing-nav-more-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 140px;
  background: #15162b;
  border: 3px solid #2a2c45;
  border-radius: 10px;
  padding: 6px 0;
  display: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
  z-index: 10;
}
.landing-nav-more:hover .landing-nav-more-menu {
  display: block;
}
.landing-nav-more-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
}
.landing-nav-more-menu a:hover {
  background: #232446;
}
.landing-actions .landing-link {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #3a3d66;
}
.landing-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.landing-lang-switch {
  display: inline-flex;
  gap: 6px;
}
.landing-lang-switch button {
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #3a3d66;
  background: transparent;
  color: #c0c2de;
  font-size: 12px;
}
.landing-lang-switch button.active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.landing-main {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.landing-hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px;
}
.landing-hero-text p {
  margin: 0 0 16px;
  color: #c0c2de;
}
.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
.landing-btn-primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.landing-btn-primary:hover {
  background: #5b5fe5;
}
.landing-btn-secondary {
  background: transparent;
  color: #e6e6f0;
  border-color: #3a3d66;
}
.landing-hero-note {
  font-size: 12px;
  opacity: 0.8;
}
.landing-hero-preview .card {
  min-height: 220px;
}

.landing-section {
  margin-top: 8px;
}
.landing-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.landing-section p {
  color: #c0c2de;
  font-size: 14px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.landing-footer {
  border-top: 1px solid #232446;
  padding: 24px 32px 18px;
  margin-top: 16px;
}
.landing-footer-columns {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.landing-footer-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.landing-footer-col a {
  display: block;
  font-size: 12px;
  color: #c0c2de;
  text-decoration: none;
  margin: 2px 0;
}
.landing-footer-col a:hover {
  color: #aeb4ff;
}
.landing-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .landing-nav {
    flex-wrap: wrap;
  }
  .landing-logo img {
    width: 104px;
  }
}

.register-page {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 8px 24px 24px;
}

.register-step-caption {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aeb4ff;
  margin-bottom: 8px;
}

.register-shell {
  min-width: 0;
}

.register-card {
  padding: 28px;
  border: 1px solid #232446;
  background: linear-gradient(180deg, rgba(18, 19, 40, 0.96), rgba(11, 12, 27, 0.96));
}

.register-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.register-card-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.register-card-head p {
  margin: 0;
  color: #b8b9cc;
  line-height: 1.6;
}

.register-back-link {
  color: #aeb4ff;
  text-decoration: none;
  white-space: nowrap;
}

.register-back-link:hover {
  color: #d4d8ff;
}

.register-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: block;
}

.register-banner.success,
.register-inline-message.success {
  background: rgba(115, 209, 61, 0.12);
  color: #a7ef7a;
  border: 1px solid rgba(115, 209, 61, 0.28);
}

.register-banner.error,
.register-inline-message.error {
  background: rgba(248, 113, 113, 0.12);
  color: #ffb4b4;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.register-banner.muted {
  background: rgba(79, 70, 229, 0.12);
  color: #c9ccff;
  border: 1px solid rgba(79, 70, 229, 0.24);
}

.register-step {
  display: none;
}

.register-step.active {
  display: block;
}

.register-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #0f1126;
  border: 1px solid #2a2c45;
  margin-bottom: 18px;
}

.register-mode-toggle button {
  margin-top: 0;
  border-radius: 999px;
  background: transparent;
  color: #c0c2de;
}

.register-mode-toggle button.active {
  background: #4f46e5;
  color: #fff;
}

.register-mode-toggle button:disabled {
  background: transparent;
  color: #6b7280;
}

.register-fieldset {
  display: none;
}

.register-fieldset.active {
  display: block;
}

.register-card input,
.register-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
}

.register-field-hint {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
}

.register-captcha-slot {
  min-height: 46px;
  margin-top: 12px;
  border: 1px dashed #3a3d66;
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.6);
}

.register-inline-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.register-inline-message.muted {
  padding: 0;
  margin-top: 6px;
  color: #9ca3af;
  border: 0;
  background: transparent;
}

.register-summary-box {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(14, 15, 34, 0.78);
  border: 1px solid #2a2c45;
}

.register-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.register-summary-value {
  color: #eef0ff;
  line-height: 1.6;
  word-break: break-word;
}

.register-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.register-primary-btn,
.register-secondary-btn,
.register-link-btn,
.register-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.register-primary-btn {
  min-width: 140px;
}

.register-secondary-btn {
  margin-top: 12px;
  padding: 10px 14px;
  background: transparent;
  color: #e6e6f0;
  border: 1px solid #3a3d66;
  border-radius: 6px;
  cursor: pointer;
}

.register-text-btn {
  margin-top: 0;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb4ff;
}

.register-text-btn:hover,
.register-secondary-btn:hover {
  color: #ffffff;
  border-color: #5b5fe5;
}

.register-sms-consent-wrap {
  margin-top: 12px;
}

.register-sms-consent-line {
  font-size: 13px;
  color: #c8cbe0;
}

.register-checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(14, 15, 34, 0.72);
  border: 1px solid #2a2c45;
  line-height: 1.7;
}

.register-checkline input {
  width: auto;
  margin-top: 3px;
}

.register-checkline a {
  color: #aeb4ff;
}

.register-success-state {
  text-align: center;
  padding: 20px 0 6px;
}

.register-success-state h3 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.register-success-state p {
  margin: 0 auto 18px;
  max-width: 420px;
  color: #c0c2de;
  line-height: 1.6;
}

.register-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(115, 209, 61, 0.16);
  color: #a7ef7a;
  border: 1px solid rgba(115, 209, 61, 0.3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forgot-identity-switch {
  margin-top: 12px;
}

.forgot-inline-note {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
}

.forgot-otp-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.forgot-otp-digit {
  width: 100%;
  padding: 14px 0;
  border-radius: 10px;
  border: 1px solid #3a3d66;
  background: rgba(14, 15, 34, 0.9);
  color: #eef0ff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.forgot-otp-digit:focus {
  outline: none;
  border-color: #6d72ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.forgot-password-strength {
  margin-top: 10px;
  font-size: 13px;
  color: #c0c2de;
}

.forgot-password-strength-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(42, 44, 69, 0.9);
  overflow: hidden;
}

.forgot-password-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.forgot-password-strength.weak .forgot-password-strength-fill {
  width: 33%;
  background: #f87171;
}

.forgot-password-strength.medium .forgot-password-strength-fill {
  width: 66%;
  background: #facc15;
}

.forgot-password-strength.strong .forgot-password-strength-fill {
  width: 100%;
  background: #73d13d;
}

@media (max-width: 900px) {
  .register-page { padding-top: 0; }
}

@media (max-width: 640px) {
  .register-card {
    padding: 20px;
  }

  .register-card-head {
    flex-direction: column;
  }

  .register-action-row {
    flex-direction: column;
  }

  .register-primary-btn,
  .register-secondary-btn,
  .register-link-btn {
    width: 100%;
  }

  .forgot-otp-group {
    gap: 8px;
  }

  .forgot-otp-digit {
    font-size: 20px;
    padding: 12px 0;
  }
}


