:root {
  --bg-1: #0d3a3a;
  --bg-2: #164d4d;
  --bg-3: #1f5e5f;
  --accent: #3f9899;
  --accent-hover: #2b7b7c;
  --text: #ffffff;
  --text-muted: #88b2c9;
  --text-soft: #57a3a6;
  --text-highlight: #a4c8d6;
  --text-dim: #6fa6b7;
  --input-bg: #0d3a3a;
  --input-border: #2b7b7c;
  --shadow: rgba(5, 40, 40, 0.5);
  --radius: 5px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(63, 152, 153, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(63, 152, 153, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 10px;
}
.layout .copyright {
  color: var(--text-dim);
  font-size: 14px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid rgba(43, 123, 124, 0.45);
  border-radius: 16px;
  box-shadow: 0 18px 50px var(--shadow);
  padding: 36px 34px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.brand .name {
  font-size: 16px; font-weight: 800; letter-spacing: 2px; color: #05b2b1;
}

.title {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: var(--text);
}
.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.subtitle strong { color: var(--text); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus {
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(63, 152, 153, 0.18);
}

.field-row { display: flex; gap: 10px; align-items: flex-start; }
.field-row .field { flex: 1; margin-bottom: 0; }
.field-row .code-btn { flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, transform .05s, opacity .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--input-border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-1); }

.hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.hint.error { color: var(--text-highlight); }
.hint.ok { color: var(--accent); }

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: rgba(164, 200, 214, 0.1); border: 1px solid rgba(164, 200, 214, 0.55); color: var(--text-highlight); }
.alert.ok { background: rgba(63, 152, 153, 0.12); border: 1px solid rgba(63, 152, 153, 0.6); color: var(--text-highlight); }
.alert.info { background: rgba(87, 163, 166, 0.1); border: 1px solid rgba(87, 163, 166, 0.5); color: var(--text-muted); }

.footer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 18px;
}
.code-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.code-inputs input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 152, 153, 0.18);
}

.resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(63, 152, 153, 0.15);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px; color: var(--accent);
}

@media (max-width: 480px) {
  .card { padding: 28px 22px; }
  .code-inputs input { width: 40px; height: 50px; font-size: 18px; }
}

.account-shell {
  min-height: 100vh;
  display: flex;
  background: #052828;
  color: #ffffff;
}

.account-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #0d3a3a;
  border-right: 1px solid #1f5e5f;
  padding: 22px 0 14px;
  display: flex;
  flex-direction: column;
}
.account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 18px;
  border-bottom: 1px solid #1f5e5f;
  margin-bottom: 14px;
  justify-content: center;
  font-weight: bold;
  user-select: none;
}
.account-brand .name {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #04b0af;
}
.account-nav { flex: 1; padding: 0 12px; }
.account-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #88b2c9;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  padding: 11px 14px;
  cursor: pointer;
  margin-bottom: 2px;
  position: relative;
  transition: background .15s, color .15s;
}
.account-nav-item:hover { background: #164d4d; color: #ffffff; }
.account-nav-item.active { background: #164d4d; color: #ffffff; }
.account-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: #3f9899;
}
.account-sidebar-foot {
  padding: 12px 20px 0;
  border-top: 1px solid #1f5e5f;
}
.account-sidebar-foot a {
  font-size: 13px;
  color: #6fa6b7;
  text-decoration: none;
}
.account-sidebar-foot a:hover { color: #a4c8d6; }

.account-main {
  flex: 1;
  padding: 34px 44px 48px;
  overflow-y: auto;
}
.account-main .copyright {
  font-size: 14px;
  color: var(--text-dim);
  margin: 10px 0;
}
.account-main-inner { max-width: 720px; }

.account-header { margin-bottom: 26px; }
.account-header h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #ffffff;
}
.account-meta {
  font-size: 13px;
  color: #88b2c9;
  line-height: 1.6;
}
.account-meta b { color: #a4c8d6; font-weight: 500; }
.account-meta .sep { color: #2b7b7c; margin: 0 8px; }

.account-panel {
  background: #0d3a3a;
  border: 1px solid #1f5e5f;
  border-radius: 10px;
  padding: 26px 28px;
  display: none;
}
.account-panel.active { display: block; animation: panelFade .18s ease; }
@keyframes panelFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.account-panel-desc {
  font-size: 13px;
  color: #6fa6b7;
  margin: 0 0 20px;
  font-weight: 400;
  line-height: 1.6;
}

.account-panel .field input { background: #052828; }
.account-panel .field input:focus { background: #052828; }

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-danger {
  background: var(--text-highlight);
  color: #052828;
  border: none;
}
.btn-danger:hover { background: #88b2c9; }
.btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }

.field-row .code-btn { height: 42px; align-self: flex-end; }

@media (max-width: 720px) {
  .account-shell { flex-direction: column; }
  .account-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #1f5e5f; padding: 16px 0; }
  .account-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px; }
  .account-nav-item { width: auto; margin-bottom: 0; }
  .account-nav-item.active::before { display: none; }
  .account-sidebar-foot { border-top: none; padding: 8px 16px 0; }
  .account-main { padding: 22px 18px; }
}


