/* ===== 全局重置 ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f0f2f5;
      padding: 20px;
    }

    /* ===== 主容器：卡片式左右分栏 ===== */
    .login-container {
      display: flex;
      width: 100%;
      max-width: 1000px;
      min-height: 580px;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.02);
      overflow: hidden;
      transition: box-shadow 0.3s ease;
    }

    .login-container:hover {
      box-shadow: 0 24px 72px rgba(0, 0, 0, 0.08);
    }

    /* ===== 左侧品牌展示区 ===== */
    .login-left {
      flex: 0 0 48%;
      background: linear-gradient(145deg, #2d6cf0, #1a4fc3);
      padding: 48px 40px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      color: #ffffff;
    }

    .login-left::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -30%;
      width: 400px;
      height: 400px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 50%;
      pointer-events: none;
    }

    .login-left::after {
      content: '';
      position: absolute;
      bottom: -30%;
      left: -20%;
      width: 300px;
      height: 300px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 50%;
      pointer-events: none;
    }

    .left-brand {
      position: relative;
      z-index: 1;
      margin-top: 12px;
    }

    .left-brand .brand-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 52px;
      height: 52px;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(4px);
      border-radius: 14px;
      color: #fff;
      font-size: 26px;
      margin-bottom: 22px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .left-brand h1 {
      font-weight: 700;
      font-size: 32px;
      letter-spacing: -0.3px;
      margin-bottom: 10px;
    }

    .left-brand p {
      font-size: 15px;
      opacity: 0.75;
      font-weight: 300;
      line-height: 1.7;
      max-width: 85%;
    }

    .left-features {
      position: relative;
      z-index: 1;
      margin: 28px 0 20px;
    }

    .feature-item {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      opacity: 0.85;
      transition: 0.2s;
    }

    .feature-item:hover {
      opacity: 1;
    }

    .feature-item i {
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
    }

    .feature-item span {
      font-size: 14px;
      font-weight: 300;
      letter-spacing: 0.2px;
    }

    .left-footer {
      position: relative;
      z-index: 1;
      font-size: 13px;
      opacity: 0.4;
      letter-spacing: 0.5px;
      margin-top: 12px;
      display: flex;
      gap: 24px;
    }

    .left-footer a {
      color: rgba(255, 255, 255, 0.5);
      text-decoration: none;
      transition: 0.2s;
    }

    .left-footer a:hover {
      color: #ffffff;
      opacity: 0.8;
    }

    /* ===== 右侧登录表单区 ===== */
    .login-right {
      flex: 1;
      padding: 48px 44px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: #ffffff;
    }

    .login-right .form-header {
      margin-bottom: 32px;
    }

    .login-right .form-header h2 {
      font-size: 24px;
      font-weight: 600;
      color: #303133;
      letter-spacing: -0.3px;
      margin-bottom: 6px;
    }

    .login-right .form-header p {
      color: #909399;
      font-size: 14px;
    }

    /* 登录方式切换 */
    .login-tabs {
      display: flex;
      gap: 24px;
      margin-bottom: 28px;
      border-bottom: 1px solid #e4e7ed;
      padding-bottom: 12px;
    }

    .login-tab {
      font-size: 15px;
      color: #606266;
      cursor: pointer;
      padding: 4px 0;
      position: relative;
      font-weight: 500;
      transition: 0.2s;
      background: none;
      border: none;
    }

    .login-tab.active {
      color: #409eff;
    }

    .login-tab.active::after {
      content: '';
      position: absolute;
      bottom: -13px;
      left: 0;
      width: 100%;
      height: 2px;
      background: #409eff;
      border-radius: 2px;
    }

    .login-tab:hover {
      color: #409eff;
    }

    /* ===== 表单样式 ===== */
    .layui-form {
      margin-top: 0;
    }

    .layui-form-item {
      margin-bottom: 22px;
      position: relative;
    }

    .layui-input-block {
      margin-left: 0 !important;
    }

    .layui-input {
      height: 44px !important;
      line-height: 44px !important;
      padding: 0 16px 0 42px !important;
      background: #f5f7fa !important;
      border: 1px solid #dcdfe6 !important;
      border-radius: 8px !important;
      color: #303133 !important;
      font-size: 14px !important;
      font-weight: 400;
      transition: all 0.25s ease;
      box-shadow: none !important;
    }

    .layui-input:focus {
      border-color: #409eff !important;
      background: #ffffff !important;
      box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.06) !important;
    }

    .layui-input::placeholder {
      color: #c0c4cc;
      font-weight: 300;
    }

    .input-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #c0c4cc;
      font-size: 16px;
      z-index: 20;
      pointer-events: none;
      transition: 0.25s;
    }

    .layui-form-item:focus-within .input-icon {
      color: #409eff;
    }

    /* 验证码 */
    .captcha-row .layui-input {
      padding-left: 16px !important;
    }

    .captcha-box {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .captcha-display {
      background: #f5f7fa;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #dcdfe6;
      color: #303133;
      font-weight: 600;
      letter-spacing: 6px;
      font-size: 20px;
      font-family: 'Courier New', monospace;
      cursor: pointer;
      user-select: none;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 100px;
      transition: 0.2s;
      background: #fafbfc;
    }
    .captcha-display img{width:100%; height: 100%;}

    .captcha-display:hover {
      border-color: #409eff;
      background: #ffffff;
    }

    .captcha-refresh {
      color: #909399;
      font-size: 18px;
      cursor: pointer;
      transition: 0.25s;
      padding: 6px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .captcha-refresh:hover {
      color: #409eff;
      background: rgba(64, 158, 255, 0.04);
      transform: rotate(30deg);
    }

    /* 登录按钮 */
    .login-btn {
      width: 100%;
      height: 44px !important;
      line-height: 44px !important;
      background: #409eff !important;
      border: none !important;
      border-radius: 8px !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      letter-spacing: 1px;
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(64, 158, 255, 0.2) !important;
      transition: all 0.3s ease;
      margin-top: 6px;
    }

    .login-btn:hover {
      background: #66b1ff !important;
      box-shadow: 0 6px 20px rgba(64, 158, 255, 0.25) !important;
      transform: translateY(-1px);
    }

    .login-btn:active {
      transform: translateY(0px);
    }

    .login-btn i {
      margin-right: 8px;
      font-size: 16px;
    }

    /* 底部选项 - 使用纯 CSS 自定义 checkbox */
    .login-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 22px;
      color: #909399;
      font-size: 14px;
    }

    .login-options a {
      color: #409eff;
      transition: 0.2s;
      text-decoration: none;
    }

    .login-options a:hover {
      color: #66b1ff;
      text-decoration: underline;
    }

    /* 自定义复选框样式 (完全由 Vue 控制，不依赖 Layui) */
    .custom-checkbox {
      display: flex;
      align-items: center;
      cursor: pointer;
      user-select: none;
    }

    .custom-checkbox input[type="checkbox"] {
      display: none;
    }

    .custom-checkbox .checkmark {
      width: 16px;
      height: 16px;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      background: #ffffff;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
      background: #409eff;
      border-color: #409eff;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      font-size: 11px;
      color: #ffffff;
    }

    .custom-checkbox .label {
      margin-left: 8px;
      color: #606266;
      font-weight: 400;
    }

    /* ===== 响应式 ===== */
    @media (max-width: 768px) {
      .login-container {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
        border-radius: 16px;
      }

      .login-left {
        flex: none;
        padding: 32px 28px;
        min-height: 200px;
      }

      .left-brand p {
        max-width: 100%;
      }

      .left-features {
        display: none;
      }

      .login-right {
        padding: 32px 28px;
      }
    }

    @media (max-width: 480px) {
      .login-container {
        margin: 0;
        border-radius: 12px;
      }
      .login-left {
        padding: 24px 20px;
      }
      .login-right {
        padding: 24px 20px;
      }
      .left-brand h1 {
        font-size: 26px;
      }
      .login-tabs {
        gap: 16px;
      }
    }

    /* ===== Layui 消息框 ===== */
    .layui-layer-msg {
      background: #ffffff !important;
      border: 1px solid #ebeef5 !important;
      border-radius: 12px !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
      color: #303133 !important;
    }
    .layui-layer-msg .layui-layer-content {
      padding: 12px 24px !important;
      color: #303133 !important;
    }
    .layui-layer-msg .layui-layer-content i {
      color: #409eff;
      margin-right: 8px;
    }
    /* ===== 记住密码复选框（login.js 读取 .icon-nocheck 是否含 .icon-check） ===== */
    .icon-nocheck {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      background: #ffffff;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .icon-nocheck.icon-check {
      background: #409eff;
      border-color: #409eff;
    }

    .icon-nocheck.icon-check::after {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      font-size: 11px;
      color: #ffffff;
    }