* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: #0f0f0f;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* 左侧区域 */
.left-panel {
  flex: 2;
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tech-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(24, 144, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(24, 144, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(24, 144, 255, 0.3);
  z-index: 1;
}

.logo-text {
  font-size: 36px;
  font-weight: bold;
  color: white;
}

.system-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  z-index: 1;
}

.system-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 30px;
  max-width: 350px;
  line-height: 1.5;
  z-index: 1;
}

/* 右侧区域 */
.right-panel {
  flex: 1;
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  position: relative;
}

.login-form {
  width: 100%;
  max-width: 380px;
  z-index: 1;
}

.welcome {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.welcome-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* 滑动验证码样式 */
.slider-captcha-container {
  margin-top: 10px;
}

.slider-track {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.slider-track-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
  border-radius: 6px;
}

.slider-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  z-index: 2;
  user-select: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 38px;
  background: #2a2a2a;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-handle::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid #7c7d80;
  border-right: 2px solid #7c7d80;
  transform: rotate(45deg);
  transition: all 0.3s;
}

.slider-handle.success::after {
  border-top: 2px solid #52c41a;
  border-right: 2px solid #52c41a;
  transform: rotate(135deg);
  width: 14px;
  height: 8px;
  margin-top: -4px;
}

.slider-success {
  color: #fff;
  font-weight: bold;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.remember-me:hover {
  color: #fff;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #1890ff;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 40px;
  background: #1890ff;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.login-btn:hover {
  background: #40a9ff;
}

.login-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/* 返回按钮样式 */
.back-btn {
  width: 100%;
  height: 40px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* 验证码输入框和发送按钮布局 */
.captcha-group {
  display: flex;
  gap: 10px;
}

.captcha-input {
  flex: 1;
}

.send-code-btn {
  width: 120px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.send-code-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.send-code-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* 扫码登录样式 */
.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.qrcode {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.qrcode-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #999;
}

.qrcode-placeholder i {
  font-size: 48px;
  margin-bottom: 10px;
}

.qrcode-refresh {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.qrcode-status {
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
  min-height: 24px;
}

.qrcode-success {
  color: #52c41a;
}

.qrcode-waiting {
  color: #1890ff;
}

.qrcode-expired {
  color: #ff4d4f;
}

/* 其他登录方式样式 */
.divider {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider-text {
  padding: 0 15px;
  font-size: 14px;
}

.login-options {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.login-option {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.login-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.copyright {
  position: absolute;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 隐藏表单 */
.hidden {
  display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    padding: 30px 20px;
  }

  .right-panel {
    padding: 30px 20px;
  }

  .copyright {
    position: static;
    margin-top: 30px;
  }

  /* 在小屏幕设备上隐藏系统名称和描述 */
  .system-name,
  .system-desc {
    display: none;
  }
}

/* 新的验证码输入框样式 */
.captcha-inputs {
  flex: 1;
  display: flex;
  gap: 0;
}

.captcha-digit {
  width: 40px;
  height: 40px;
  border-radius: 0; /* 方形，去掉圆角 */
  border: 1px solid #333;
  text-align: center;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: all 0.3s;
  margin-right: -1px; /* 让边框重叠，消除双边框 */
}

.captcha-digit:first-child {
  border-radius: 4px 0 0 4px; /* 第一个输入框左侧圆角 */
}

.captcha-digit:last-child {
  border-radius: 0 4px 4px 0; /* 最后一个输入框右侧圆角 */
  margin-right: 0;
}

.captcha-digit:focus {
  border-color: #1890ff;
  z-index: 1; /* 确保焦点状态的输入框在上面 */
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.captcha-digit.filled {
  background-color: rgba(24, 144, 255, 0.1);
  border-color: #1890ff;
}

.captcha-container {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

:root {
  --dark-bg: #14161a;
  --dark-bg-light: #2d2d2d;
  --dark-bg-lighter: #3d3d3d;
  --dark-text: #e0e0e0;
  --dark-text-light: #a0a0a0;
  --primary-color: #009688;
  --primary-hover: #007d6c;
  --scrollbar-track: #2d2d2d;
  --scrollbar-thumb: #555555;
  --scrollbar-thumb-hover: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 15px 15px 0 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }

  body {
    padding: 15px 15px 0 15px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-actions .layui-btn {
    width: 100%;
  }
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
  border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Firefox 滚动条样式 */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
  background-color: var(--dark-bg);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.layui-badge {
  height: 20px;
  line-height: 20px;
}

/* 自定义弹窗 - 标题样式 */
.dayou-layer-iframe .layui-layer-title {
  background-color: #1c1e23;
  color: #f2f2f2;
  border-bottom: 1px solid #36363a;
}
/* 自定义弹窗 - 关闭按钮 */
.dayou-layer-iframe .layui-layer-setwin span {
  color: #f2f2f2;
}
/* 自定义弹窗 - 底部按钮背景 */
.dayou-layer-iframe .layui-layer-btn {
  background-color: #1c1e23;
  border-top: 1px solid #36363a;
}
/* 自定义弹窗 - 主体内容框架 */
.dayou-layer-iframe .layui-layer-content {
  background-color: #1c1e23;
}

/* 自定义信息框 - 主体内容框架 */
.dayou-layer-dialog.layui-layer-dialog {
  background-color: #1c1e23;
  border: 1px solid #36363a;
  border-radius: 8px;
}

/* 自定义编辑框样式 */
.layui-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color 0.3s;
}

.layui-input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 保留原有的密码框样式 */
.layui-input-affix.layui-input-suffix i {
  color: #7c7d80;
}
.layui-input-affix.layui-input-suffix i:hover {
  color: #fff;
}
