:root {
  --bg: #050510;
  --card-bg: #101020;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.2);
  --accent-hover: #5f4dd0;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f5f5ff;
  --text-soft: #a3a3c2;
  --danger: #ff7675;
  --success: #00b894;
  --radius-xl: 20px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(circle at top, #151532 0, #050510 55%, #000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 16px;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(18, 18, 40, 0.95), rgba(5, 5, 20, 0.98));
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  backdrop-filter: blur(26px);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-soft);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
}

.btn-submit {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

.btn-wechat {
  background: #07c160;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-wechat:hover {
  background: #06ac54;
}

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

.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
}

.auth-link:hover {
  text-decoration: underline;
}

.error-message {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
  display: none;
}

.section-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin: 24px 0 12px;
  letter-spacing: 0.05em;
}

.wechat-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 10px;
  line-height: 1.4;
}

.success-message {
  color: var(--success);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
  display: none;
}

.info-message {
  background: rgba(7, 193, 96, 0.1);
  border: 1px solid rgba(7, 193, 96, 0.3);
  color: #8ef5c1;
  font-size: 13px;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-ghost {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

