.login-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 600px;
  padding: 20px;
  overflow: hidden;
  background-color: #f5f7fa;
  background-image: url("@/assets/login/bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  .login-box {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    height: 90%;
    min-height: 600px;
    padding: 40px 60px;
    background-color: transparent;

    // 左侧品牌区域
    .login-left {
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: flex-start;
      padding-right: 60px;
      .brand-header {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 20px;
        .logo-img {
          max-width: 50px;
          height: auto;
          object-fit: contain;
        }
        .brand-text {
          font-size: 20px;
          font-weight: 600;
          color: #409eff;
        }
      }
      .slogan {
        width: 567px;
        height: 44px;
        margin-bottom: 40px;
        font-family: Inter;
        font-size: 36px;
        font-style: normal;
        font-weight: 300;
        line-height: 44px;
        color: #8b8b8b;
        text-align: left;
        text-transform: none;
      }
      .store-section {
        display: flex;
        gap: 20px;
        align-items: flex-end;
        width: 100%;
        margin-bottom: 30px;
      }

      //.store-illustration {
      //  flex: 1;
      //  display: flex;
      //  align-items: center;
      //  justify-content: center;
      .store-img {
        width: 686px;
        height: 568px;

        //object-fit: contain;
      }

      //}
      .qr-code-card {
        flex-shrink: 0;
        .qr-card-wrapper {
          width: 180px;
          padding: 20px;
          text-align: center;
          background-color: #ffffff;
          border: 1px solid #e4e7ed;
          border-radius: 8px;
          box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
          .qr-title-img {
            width: 100%;
            max-width: 100%;
            height: auto;
            margin-bottom: 12px;
            object-fit: contain;
          }
          .qr-code {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 140px;
            height: 140px;
            margin: 0 auto 12px;
            background-color: #f5f7fa;
            border: 1px solid #e4e7ed;
            border-radius: 4px;
            .qr-img {
              width: 100%;
              height: 100%;
              object-fit: contain;
            }
            .qr-placeholder {
              font-size: 12px;
              color: #909399;
            }
          }
          .qr-desc {
            font-size: 12px;
            color: #909399;
          }
        }
      }
    }

    // 右侧登录表单
    .login-form {
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      width: 480px;
      height: 600px;
      padding: 50px 40px;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
      .form-title {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        margin: 0 0 30px;
        font-family: Inter;
        font-size: 26px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
        color: #303133;
        text-align: center;
        letter-spacing: 0%;
        .form-title-img {
          width: auto;
          height: 2em;
          vertical-align: middle;
          object-fit: contain;
        }
      }
    }
  }
}

// 响应式设计
@media screen and (width <= 1200px) {
  .login-container {
    .login-box {
      .login-left {
        padding-right: 40px;
        .store-illustration {
          .store-img {
            max-height: 300px;
          }
        }
      }
    }
  }
}

@media screen and (width <= 992px) {
  .login-container {
    .login-box {
      flex-direction: column;
      padding: 30px 40px;
      .login-left {
        align-items: center;
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        .brand-header {
          width: 100%;
        }
        .slogan {
          width: 100%;
          max-width: 567px;
          height: auto;
          font-size: 28px;
          line-height: 1.2;
          text-align: center;
        }
        .store-section {
          flex-direction: column;
          align-items: center;
          .store-illustration {
            margin-bottom: 20px;
            .store-img {
              max-height: 250px;
            }
          }
          .qr-code-card {
            margin: 0 auto;
          }
        }
      }
      .login-form {
        width: 100%;
        max-width: 480px;
      }
    }
  }
}

@media screen and (width <= 600px) {
  .login-container {
    padding: 10px;
    .login-box {
      min-height: auto;
      padding: 20px;
      .login-left {
        .slogan {
          width: 100%;
          height: auto;
          font-size: 24px;
          line-height: 1.2;
        }
        .store-section {
          flex-direction: column;
          align-items: center;
          .store-illustration {
            .store-img {
              max-height: 200px;
            }
          }
          .qr-code-card {
            .qr-card-wrapper {
              width: 150px;
              padding: 15px;
              .qr-code {
                width: 120px;
                height: 120px;
              }
            }
          }
        }
      }
      .login-form {
        padding: 30px 20px;
      }
    }
  }
}
