text: from PyQt5 import QtCore, QtGui, QtWidgets
  import sys,res
  
  class Ui_Form(object):
      def setupUi(self, Form):
          Form.setObjectName("Form")
          Form.resize(450, 550)
          Form.setWindowFlags(QtCore.Qt.FramelessWindowHint)
          Form.setAttribute(QtCore.Qt.WA_TranslucentBackground)
          self.widget = QtWidgets.QWidget(Form)
          self.widget.setGeometry(QtCore.QRect(30, 30, 370, 480))
          self.widget.setStyleSheet("QPushButton#pushButton{    \n"
  "    background-color: qlineargradient(spread:pad, x1:0, y1:0.505682, x2:1, y2:0.477, stop:0 rgba(20, 47, 78, 219), stop:1 rgba(85, 98, 112, 226));\n"
  "    color:rgba(255, 255, 255, 210);\n"
  "    border-radius:5px;\n"
  "}\n"
  "QPushButton#pushButton:hover{    \n"
  "    background-color: qlineargradient(spread:pad, x1:0, y1:0.505682, x2:1, y2:0.477, stop:0 rgba(40, 67, 98, 219), stop:1 rgba(105, 118, 132, 226));\n"
  "}\n"
  "QPushButton#pushButton:pressed{    \n"
  "    padding-left:5px;\n"
  "    padding-top:5px;\n"
  "    background-color:rgba(105, 118, 132, 200);\n"
  "}\n"
  "\n"
  "QPushButton#pushButton_2, #pushButton_3, #pushButton_4, #pushButton_5{    \n"
  "    background-color: rgba(0, 0, 0, 0);\n"
  "    color:rgba(85, 98, 112, 255);\n"
  "}\n"
  "QPushButton#pushButton_2:hover, #pushButton_3:hover, #pushButton_4:hover, #pushButton_5:hover{    \n"
  "    color:rgba(155, 168, 182, 220);\n"
  "}\n"
  "QPushButton#pushButton_2:pressed, #pushButton_3:pressed, #pushButton_4:pressed, #pushButton_5:pressed{    \n"
  "    padding-left:5px;\n"
  "    padding-top:5px;\n"
  "    color:rgba(115, 128, 142, 255);\n"
  "}")
          self.widget.setObjectName("widget")
          self.label = QtWidgets.QLabel(self.widget)
          self.label.setGeometry(QtCore.QRect(30, 30, 300, 420))
          self.label.setStyleSheet("border-image: url(:/images/background.png);\n"
  "border-radius:20px;")
          self.label.setText("")
          self.label.setObjectName("label")
          self.label_2 = QtWidgets.QLabel(self.widget)
          self.label_2.setGeometry(QtCore.QRect(30, 30, 300, 420))
          self.label_2.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.715909, stop:0 rgba(0, 0, 0, 9), stop:0.375 rgba(0, 0, 0, 50), stop:0.835227 rgba(0, 0, 0, 75));\n"
  "border-radius:20px;")
          self.label_2.setText("")
          self.label_2.setObjectName("label_2")
          self.label_3 = QtWidgets.QLabel(self.widget)
          self.label_3.setGeometry(QtCore.QRect(40, 60, 280, 390))
          self.label_3.setStyleSheet("background-color:rgba(0, 0, 0, 100);\n"
  "border-radius:15px;")
          self.label_3.setText("")
          self.label_3.setObjectName("label_3")
          self.label_4 = QtWidgets.QLabel(self.widget)
          self.label_4.setGeometry(QtCore.QRect(135, 95, 90, 40))
          font = QtGui.QFont()
          font.setPointSize(20)
          font.setBold(True)
          font.setWeight(75)
          self.label_4.setFont(font)
          self.label_4.setStyleSheet("color:rgba(255, 255, 255, 210);")
          self.label_4.setObjectName("label_4")
          self.lineEdit = QtWidgets.QLineEdit(self.widget)
          self.lineEdit.setGeometry(QtCore.QRect(80, 165, 200, 40))
          font = QtGui.QFont()
          font.setPointSize(10)
          self.lineEdit.setFont(font)
          self.lineEdit.setStyleSheet("background-color:rgba(0, 0, 0, 0);\n"
  "border:none;\n"
  "border-bottom:2px solid rgba(105, 118, 132, 255);\n"
  "color:rgba(255, 255, 255, 230);\n"
  "padding-bottom:7px;")
          self.lineEdit.setObjectName("lineEdit")
          self.lineEdit_2 = QtWidgets.QLineEdit(self.widget)
          self.lineEdit_2.setGeometry(QtCore.QRect(80, 230, 200, 40))
          font = QtGui.QFont()
          font.setPointSize(10)
          self.lineEdit_2.setFont(font)
          self.lineEdit_2.setStyleSheet("background-color:rgba(0, 0, 0, 0);\n"
  "border:none;\n"
  "border-bottom:2px solid rgba(105, 118, 132, 255);\n"
  "color:rgba(255, 255, 255, 230);\n"
  "padding-bottom:7px;")
          self.lineEdit_2.setEchoMode(QtWidgets.QLineEdit.Password)
          self.lineEdit_2.setObjectName("lineEdit_2")
          self.pushButton = QtWidgets.QPushButton(self.widget)
          self.pushButton.setGeometry(QtCore.QRect(80, 310, 200, 40))
          font = QtGui.QFont()
          font.setPointSize(12)
          font.setBold(True)
          font.setWeight(75)
          self.pushButton.setFont(font)
          self.pushButton.setObjectName("pushButton")
          self.label_5 = QtWidgets.QLabel(self.widget)
          self.label_5.setGeometry(QtCore.QRect(91, 358, 191, 21))
          self.label_5.setStyleSheet("color:rgba(255, 255, 255, 140);")
          self.label_5.setObjectName("label_5")
          self.horizontalLayoutWidget = QtWidgets.QWidget(self.widget)
          self.horizontalLayoutWidget.setGeometry(QtCore.QRect(105, 399, 141, 31))
          self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
          self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
          self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
          self.horizontalLayout.setSpacing(0)
          self.horizontalLayout.setObjectName("horizontalLayout")
          self.pushButton_2 = QtWidgets.QPushButton(self.horizontalLayoutWidget)
          self.pushButton_2.setMaximumSize(QtCore.QSize(30, 30))
          font = QtGui.QFont()
          font.setFamily("Social Media Circled")
          font.setPointSize(15)
          self.pushButton_2.setFont(font)
          self.pushButton_2.setObjectName("pushButton_2")
          self.horizontalLayout.addWidget(self.pushButton_2)
  
          self.label.setGraphicsEffect(QtWidgets.QGraphicsDropShadowEffect(blurRadius=25, xOffset=0, yOffset=0, color=QtGui.QColor(234, 221, 186, 100)))
          self.label_3.setGraphicsEffect(QtWidgets.QGraphicsDropShadowEffect(blurRadius=25, xOffset=0, yOffset=0, color=QtGui.QColor(105, 118, 132, 100)))
          self.pushButton.setGraphicsEffect(QtWidgets.QGraphicsDropShadowEffect(blurRadius=25, xOffset=3, yOffset=3, color=QtGui.QColor(105, 118, 132, 100)))
          self.retranslateUi(Form)
          QtCore.QMetaObject.connectSlotsByName(Form)
          #pix = QtGui.QPixmap(self.widget.size())
          #self.widget.render(pix)
          #pix.save("save.png")
  
      def retranslateUi(self, Form):
          _translate = QtCore.QCoreApplication.translate
          Form.setWindowTitle(_translate("Form", "Form"))
          self.label_4.setText(_translate("Form", "Log In"))
          self.lineEdit.setPlaceholderText(_translate("Form", "  User Name"))
          self.lineEdit_2.setPlaceholderText(_translate("Form", "  Password"))
          self.pushButton.setText(_translate("Form", "L o g  I n"))
          self.label_5.setText(_translate("Form", "Forgot your User Name or Password? "))
          self.pushButton_2.setText(_translate("Form", "Exit"))
  
  class Form(QtWidgets.QWidget):
      def __init__(self):
          super(Form, self).__init__()
          self.ui = Ui_Form()
          self.ui.setupUi(self)
  