

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans Pro', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #0c0e1a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.login-body::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 141, 238, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  animation: loginFloatGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

.login-body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 207, 221, 0.10) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: loginFloatGlow 10s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

@keyframes loginFloatGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(40px, 30px) scale(1.2); opacity: 1; }
}

.login-body .grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 440px;
  max-width: 92%;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 48px 40px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #5A8DEE, #00CFDD);
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(90, 141, 238, 0.35);
}

.login-header .logo-icon i {
  font-size: 36px;
  color: #fff;
}

.login-header h3 {
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.login-header .subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 300;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .input-group {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.login-form .input-group:focus-within {
  border-color: rgba(90, 141, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(90, 141, 238, 0.10);
  background: rgba(255, 255, 255, 0.08);
}

.login-form .input-group-text {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 12px 16px 12px 18px;
  font-size: 16px;
}

.login-form .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 18px 12px 0;
  font-size: 15px;
  height: 50px;
  box-shadow: none;
}

.login-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.30);
  font-weight: 300;
}

.login-form .form-control:focus {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.login-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5A8DEE, #00CFDD);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(90, 141, 238, 0.40);
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.login-btn:hover::after {
  left: 100%;
}

#loginError {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  display: none;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.10);
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.15);
}

#loginError.show {
  display: block;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.login-footer span {
  color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 28px;
  }
  .login-header h3 {
    font-size: 22px;
  }
  .login-header .logo-icon {
    width: 60px;
    height: 60px;
  }
  .login-header .logo-icon i {
    font-size: 28px;
  }
}

/* ============================================================
   二、后台浅色主题
   ============================================================ */

.announcement {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement i {
  margin-right: 8px;
  color: #e6a700;
}

.page-content {
  padding: 20px;
}

.small-box .icon {
  font-size: 70px;
}

.nav-sidebar .nav-link.active {
  background: #007bff;
  color: #fff;
}

.chart-container {
  position: relative;
  height: 250px;
}

.invite-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.team-group-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 24px 20px;
  margin-bottom: 24px;
  border: none;
  transition: box-shadow 0.2s;
}
.team-group-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.team-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f3f5;
  letter-spacing: 0.5px;
}
.team-group-title i {
  margin-right: 10px;
  color: #007bff;
}

.stat-block-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  background: #f8faff;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s;
  height: 100%;
  justify-content: center;
  border: 1px solid #eef2f7;
}
.stat-block-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  border-color: #d0d9e8;
}
.stat-block-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}
.stat-block-card .stat-icon.green { background: linear-gradient(135deg, #28a745, #20c997); }
.stat-block-card .stat-icon.blue { background: linear-gradient(135deg, #007bff, #17a2b8); }
.stat-block-card .stat-icon.orange { background: linear-gradient(135deg, #fd7e14, #f39c12); }
.stat-block-card .stat-icon.purple { background: linear-gradient(135deg, #6f42c1, #8e44ad); }
.stat-block-card .stat-icon.teal { background: linear-gradient(135deg, #20c997, #0dcaf0); }
.stat-block-card .stat-label {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 4px;
  font-weight: 500;
}
.stat-block-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #1e2a3a;
}

@media (max-width: 576px) {
  .stat-block-card { padding: 12px 6px; }
  .stat-block-card .stat-icon { width: 44px; height: 44px; font-size: 18px; }
  .stat-block-card .stat-value { font-size: 18px; }
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ranking-table thead th {
  background: linear-gradient(145deg, #1a2a3a, #2c3e50);
  color: #ffffff;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid #0f1a26;
  font-weight: 600;
}
.ranking-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #e9edf2;
  line-height: 1.6;
}
.ranking-table tbody tr:hover {
  background-color: #f1f6fe;
}
.ranking-table .rank-badge {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
}
.ranking-table .rank-1 { background: #ffc107; }
.ranking-table .rank-2 { background: #adb5bd; }
.ranking-table .rank-3 { background: #cd7f32; }
.ranking-table .rank-other { background: #6c757d; }

.table-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 20px 18px;
  border: none;
  transition: box-shadow 0.2s;
}
.table-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.table-wrapper .table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.table-wrapper .table-toolbar .form-group { margin-bottom: 0; }
.table-wrapper .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
}
.table-wrapper .table thead th {
  background: linear-gradient(145deg, #1a2a3a, #2c3e50);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  border-bottom: 2px solid #0f1a26;
  letter-spacing: 0.3px;
}
.table-wrapper .table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  border-top: 1px solid #e9edf2;
}
.table-wrapper .table tbody tr {
  transition: background 0.15s;
}
.table-wrapper .table tbody tr:hover {
  background-color: #f1f6fe;
}
.table-wrapper .table tbody tr:nth-of-type(even) {
  background-color: #fafbfc;
}
.table-wrapper .table tbody tr:nth-of-type(even):hover {
  background-color: #f1f6fe;
}
.table-wrapper .table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e9edf2;
  font-size: 14px;
  color: #6c757d;
}
.table-wrapper .table-pagination .page-info {
  font-size: 14px;
}
.table-wrapper .table-pagination .pagination-btns .btn {
  margin-left: 6px;
  min-width: 72px;
  border-radius: 20px;
  transition: all 0.15s;
  font-size: 14px;
}
.table-wrapper .table-pagination .pagination-btns .btn:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.btn-group-report .btn {
  min-width: 80px;
  border-radius: 20px;
  transition: all 0.15s;
  font-weight: 500;
  font-size: 14px;
}
.btn-group-report .btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.btn-group-report .btn:not(.active):hover {
  background: #e9ecef;
}

.form-control, .input-group-text {
  border-radius: 8px;
}
.btn {
  border-radius: 8px;
}

.user-info-form .form-group {
  margin-bottom: 1.2rem;
}
.user-info-form label {
  font-weight: 600;
  color: #2c3e50;
}
.user-info-form .form-control[readonly] {
  background-color: #f5f7fa;
}
.percentage-input .form-control {
  padding-right: 2.5rem;
}
.percentage-input .input-group-append .input-group-text {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: #fff;
  border-left: 0;
  font-weight: 600;
  color: #495057;
}

/* ============================================================
   三、Loading 遮罩
   ============================================================ */

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 18px;
  color: #007bff;
  flex-direction: column;
}
#loadingOverlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.hidden {
  display: none !important;
}


@media (max-width: 576px) {
  .toolbar-left,
  .toolbar-right {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-start;
  }
  .toolbar-left {
    margin-bottom: 8px;
  }
  .toolbar-right {
    flex-wrap: wrap;
    gap: 6px 15px;
  }
  .toolbar-right .stat-label,
  .toolbar-right .stat-value {
    display: inline-block;
  }
}