/* ============== base ============== */
:root {
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --secondary-color: #00a8ff;
  --accent-color: #7c3aed;
  --accent-light: #a78bfa;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --light-bg: #f8fafc;
  --white-bg: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-3: linear-gradient(135deg, #0066ff 0%, #00a8ff 100%);
  --gradient-4: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --gradient-5: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-6: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066ff 100%);
  --shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 102, 255, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--light-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 全局动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
}


/* ============== dashboard ============== */
.dashboard-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}

/* 第一行：顶部导航栏 */
.top-header {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #595959;
  transition: all 0.3s;
}

.menu-toggle:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.menu-toggle.active {
  background: #e6f7ff;
  color: #0066ff;
}

.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #0066ff 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-box {
  position: relative;
  margin-left: 24px;
  width: 300px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8c8c;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 40px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  color: #303133;
  background: #f5f5f5;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  background: #fff;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

.search-input::placeholder {
  color: #8c8c8c;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #595959;
  font-size: 14px;
}

.header-action:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.header-action svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header-action:hover svg {
  transform: scale(1.1);
}

.action-text {
  white-space: nowrap;
}

.lang-menu-wrapper {
  position: relative;
}

.lang-switcher {
  font-weight: 500;
  position: relative;
}

.lang-arrow {
  transition: transform 0.3s;
  color: #8c8c8c;
  margin-left: 4px;
}

.lang-arrow.open {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1002;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.3s;
  color: #595959;
  font-size: 14px;
}

.lang-option:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.lang-option.active {
  background: #f0f7ff;
  color: #0066ff;
  font-weight: 500;
}

.lang-option svg {
  color: #0066ff;
  flex-shrink: 0;
}

.user-menu-wrapper {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.user-info:hover {
  background: #f5f5f5;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  color: #262626;
  font-weight: 500;
}

.dropdown-arrow {
  transition: transform 0.3s;
  color: #8c8c8c;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1001;
  border: 1px solid #e8e8e8;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-info {
  flex: 1;
}

.dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
}

.dropdown-email {
  font-size: 12px;
  color: #8c8c8c;
}

.dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #595959;
  font-size: 14px;
  transition: background 0.3s;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.dropdown-item svg {
  color: #8c8c8c;
}

.dropdown-item:hover svg {
  color: #0066ff;
}

/* 第二行：系统主菜单 */
.system-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 16px;
  position: sticky;
  top: 56px;
  z-index: 999;
}

.system-nav-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.system-nav-container::-webkit-scrollbar {
  display: none;
}

.system-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  color: #595959;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.system-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
  transition: left 0.5s;
}

.system-nav-item:hover::before {
  left: 100%;
}

.system-nav-item:hover {
  color: #0066ff;
  background: #f5f5f5;
}

.system-nav-item.active {
  color: #0066ff;
  border-bottom-color: #0066ff;
  background: #f0f7ff;
}

.system-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.system-nav-item:hover .system-icon {
  transform: scale(1.2) rotate(5deg);
}

.system-nav-item.active .system-icon {
  transform: scale(1.15);
}

.system-name {
  font-weight: 500;
}

/* 主体区域 */
.dashboard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  position: relative;
  animation: fadeInUp 0.4s ease-out;
}

/* 左侧子菜单 */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border 0.3s;
  animation: slideInLeft 0.4s ease-out;
}

.sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right: none;
  overflow: hidden;
  padding: 0;
}

.sidebar-nav {
  padding: 16px 0;
  white-space: nowrap;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #595959;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
  position: relative;
  animation: slideInLeft 0.3s ease-out backwards;
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }

.menu-item:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.menu-item.active {
  background: #e6f7ff;
  color: #0066ff;
  font-weight: 500;
  border-left-color: #0066ff;
}

.menu-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
  transform: scale(1.2) translateX(2px);
}

.menu-item.active .menu-icon {
  transform: scale(1.15);
}

.menu-text {
  flex: 1;
}

/* 父菜单样式 */
.menu-group {
  border-left: 3px solid transparent;
}

.menu-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #595959;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.menu-group-title:hover {
  background: #f5f5f5;
  color: #0066ff;
}

.menu-group-title.active {
  background: #e6f7ff;
  color: #0066ff;
  border-left-color: #0066ff;
}

.menu-group-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.menu-group-title:hover .menu-group-icon {
  transform: scale(1.2) translateX(2px);
}

.menu-group-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s ease;
  color: #8c8c8c;
}

.menu-group.expanded .menu-group-arrow {
  transform: rotate(90deg);
}

.menu-group-title:hover .menu-group-arrow {
  color: #0066ff;
}

/* 子菜单容器 */
.menu-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fafafa;
}

.menu-group.expanded .menu-children {
  max-height: 1000px;
}

/* 子菜单项 */
.menu-child-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 50px;
  text-decoration: none;
  color: #8c8c8c;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.menu-child-item::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9d9d9;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.menu-child-item:hover {
  background: #f0f7ff;
  color: #0066ff;
}

.menu-child-item:hover::before {
  background: #0066ff;
  width: 6px;
  height: 6px;
}

.menu-child-item.active {
  /* background: #e6f7ff; */
  color: #0066ff;
  font-weight: 500;
}

.menu-child-item.active::before {
  background: #0066ff;
  width: 6px;
  height: 6px;
}

.menu-child-text {
  flex: 1;
}

/* 右侧内容区域 */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: #f0f2f5;
  min-width: 0;
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-out;
}

.overview-page {
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

.page-header {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease-out;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: #303133;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scaleIn 0.5s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
  transform: rotate(10deg) scale(1.1);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #909399;
}

.stat-trend {
  text-align: right;
}

.trend-up {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 4px;
}

.trend-text {
  display: block;
  font-size: 12px;
  color: #909399;
}

.quick-actions,
.recent-activity {
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 20px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scaleIn 0.5s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.action-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.action-card:hover::after {
  width: 300px;
  height: 300px;
}

.action-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 102, 255, 0.2);
  color: #0066ff;
}

.action-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0066ff;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover .action-icon {
  transform: scale(1.2) rotate(5deg);
}

.action-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.action-desc {
  font-size: 14px;
  color: #909399;
}

.activity-list {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  animation: slideInLeft 0.4s ease-out backwards;
}

.activity-item:hover {
  background: #f8f9fa;
  padding-left: 8px;
  transform: translateX(4px);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  color: #303133;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 12px;
  color: #909399;
}

/* 底部版权信息 */
.dashboard-footer {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 16px 24px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  color: #8c8c8c;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  color: #595959;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0066ff;
}

.footer-links .divider {
  color: #d9d9d9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .top-header {
    padding: 0 12px;
  }

  .logo {
    font-size: 18px;
  }

  .search-box {
    margin-left: 12px;
    width: 200px;
  }

  .system-nav {
    padding: 0;
    overflow: hidden;
  }

  .system-nav-container {
    padding: 0 12px;
    gap: 6px;
    mask-image: linear-gradient(to right, transparent 0%, black 10px, black calc(100% - 10px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10px, black calc(100% - 10px), transparent 100%);
  }

  .system-nav-item {
    padding: 10px 16px;
    font-size: 13px;
    min-width: fit-content;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 92px;
    bottom: 0;
    z-index: 998;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .sidebar.collapsed {
    width: 0;
    border-right: none;
    overflow: hidden;
  }

  .dashboard-content {
    width: 100%;
    padding: 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
  }

  .search-box {
    display: none;
  }

  .header-action .action-text {
    display: none;
  }

  .user-name {
    display: none;
  }

  .dropdown-arrow {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .system-nav-container {
    gap: 4px;
    padding: 0 8px;
  }

  .system-nav-item {
    padding: 8px 12px;
    font-size: 12px;
    min-width: fit-content;
  }

  .system-icon {
    font-size: 16px;
  }

  .dashboard-content {
    padding: 12px;
  }
}


/* ============== login ============== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    animation: fadeInUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #0066ff 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    background: var(--white-bg);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.login-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0066ff 0%, #00a8ff 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    padding: 12px;
    background: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
    }
}

