/* ---- Auth Pages ---- */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f6fa;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

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

.auth-logo {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e2f;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #888;
}

.auth-tab.active {
  background: #fff;
  color: #4f6ef7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.auth-form input {
  width: 100%;
  border: 1.5px solid #e2e5ee;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fafbfc;
  transition: all 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #4f6ef7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.08);
}

.auth-error {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 20px;
}

.auth-success {
  color: #27ae60;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #4f6ef7;
  text-decoration: none;
  font-size: 14px;
}

/* ---- User Bar ---- */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: -8px;
  font-size: 13px;
}

.user-bar .user-name {
  color: #4f6ef7;
  font-weight: 600;
}

.quota-badge {
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
  background: #ecfdf3;
  padding: 4px 10px;
  border-radius: 10px;
}

.quota-badge.low {
  color: #e74c3c;
  background: #fef5f5;
}

.user-bar a {
  color: #888;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f0f2f5;
  transition: all 0.2s;
  font-size: 12px;
}

.user-bar a:hover {
  background: #e4e7ed;
  color: #555;
}

.user-bar .btn-login {
  background: #4f6ef7;
  color: #fff;
}

.user-bar .btn-login:hover {
  background: #3e5de6;
  color: #fff;
}

/* ---- Invite Page ---- */
.invite-card {
  max-width: 440px;
}

.invite-section {
  text-align: center;
  margin-bottom: 28px;
}

.invite-section h2 {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.invite-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.invite-code-text {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #4f6ef7;
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  background: #f8f9ff;
  padding: 8px 20px;
  border-radius: 12px;
  border: 2px dashed #dde1f8;
}

.copy-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #4f6ef7;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #3e5de6;
}

.invite-hint {
  font-size: 12px;
  color: #aaa;
}

.invite-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.invite-stats .stat-card {
  flex: 1;
}

.stat-card {
  background: #f8f9fd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #f0f2f8;
}

.stat-big {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #4f6ef7;
}

.stat-desc {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

.invite-rules {
  margin-bottom: 20px;
  background: #f8f9fd;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #f0f2f8;
}

.invite-rules h3 {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.invite-rules ul {
  list-style: none;
  padding: 0;
}

.invite-rules li {
  padding: 4px 0;
  font-size: 13px;
  color: #666;
  padding-left: 16px;
  position: relative;
}

.invite-rules li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
}

.invited-list {
  margin-bottom: 20px;
}

.invited-list h3 {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.invited-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

.invited-name {
  color: #333;
}

.invited-time {
  color: #aaa;
  font-size: 12px;
}

/* ---- WeChat Login ---- */
.wechat-login-area {
  text-align: center;
  margin-bottom: 8px;
}

.wechat-info {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.wechat-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #07c160;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
}

.wechat-btn:hover {
  background: #06ad56;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.wechat-qr-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #fff;
  color: #07c160;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid #07c160;
  transition: all 0.2s;
}

.wechat-qr-btn:hover {
  background: #f0fdf5;
  border-color: #06ad56;
  color: #06ad56;
}

.divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #c0c7d0;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eef0f5;
}

.divider-text {
  padding: 0 16px;
}

.wechat-qr-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.wechat-sub {
  font-size: 12px;
  color: #bbb;
  margin-top: 12px;
}
