* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  /* Telegram 官方真实配色（从源码 ThemeColors.java / colors.xml 提取） */
  --accent: #1a91e6;          /* 主蓝 */
  --accent-light: #2c9efc;
  --text: #000000;
  --text-sub: #707579;        /* 次要文字灰 */
  --divider: #dcdcdc;
  --bg-input: #f5f5f5;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ===== 登录页（Telegram 真实风格） ===== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}
.login-wrap {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}
.login-logo img { width: 100%; height: 100%; display: block; }
.login-title { font-size: 26px; font-weight: 600; margin-bottom: 6px; letter-spacing: .3px; }
.login-sub { color: var(--text-sub); font-size: 15px; margin-bottom: 36px; }

.field { margin-bottom: 14px; }
.field input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--divider);
  padding: 12px 4px;
  font-size: 17px;
  outline: none;
  background: transparent;
  transition: border-color .15s;
}
.field input::placeholder { color: var(--text-sub); }
.field input:focus { border-bottom-color: var(--accent); }

.primary-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
  cursor: pointer;
  letter-spacing: .5px;
}
.primary-btn:active { background: var(--accent-light); }
.primary-btn[disabled] { opacity: .55; }
.err { color: #e53935; font-size: 13px; min-height: 18px; margin-top: 14px; }