From 24842b40de5cd60700bf69dfd38a0332f5431e36 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 23 五月 2025 10:55:07 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/views/login/index.scss |  351 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 329 insertions(+), 22 deletions(-)

diff --git a/src/views/login/index.scss b/src/views/login/index.scss
index 12e12c5..b4fe275 100644
--- a/src/views/login/index.scss
+++ b/src/views/login/index.scss
@@ -1,65 +1,372 @@
 .login-container {
   height: 100vh;
   min-height: 600px;
-  background: #000000;
+  background-color: var(--mk-sys-background);
+  background-size: cover;
+  background-repeat: no-repeat;
+  background-position: center center;
+  --mk-login-offset-top: 0px;
+  --mk-login-offset-left: 0px;
+
   .logo {
+    position: relative;
     height: 100px;
     padding-top: 30px;
-    border-bottom: 2px solid #06b4f7;
+    line-height: 80px;
+    border-bottom: 2px solid var(--mk-sys-color);
     img {
       max-height: 100%;
     }
+    .plat-name {
+      position: absolute;
+      color: var(--mk-sys-font-color);
+      line-height: 30px;
+      font-size: 30px;
+      font-weight: 600;
+      padding-left: 20px;
+      font-family: "榛戜綋","瀹嬩綋",sans-serif,"Arial","Microsoft YaHei";
+      z-index: 1;
+    }
   }
+
   .login-middle {
-    height: calc(100vh - 194px);
+    position: relative;
+    height: calc(100vh - 200px);
     min-height: 420px;
-    background: url('../../assets/img/loginbg.png');
-    background-size: cover;
-    background-position: center center;
-    border-bottom: 2px solid #06b4f7;
+    border-bottom: 2px solid var(--mk-sys-color);
+    display: flex;
+    align-items: center;
+    justify-content: flex-end;
+    padding-right: 20vw;
+    overflow: hidden;
+
+    .login-form-button {
+      background-color: var(--mk-sys-color);
+      border-color: var(--mk-sys-color);
+    }
+    .login-form-button[disabled] {
+      background-color: var(--mk-sys-color5);
+      border-color: var(--mk-sys-color5);
+    }
+    .login-form-button.disabled {
+      background-color: var(--mk-sys-color5);
+      border-color: var(--mk-sys-color5);
+      color: #ffffff;
+      cursor: not-allowed;
+      opacity: 0.9;
+    }
+
+    .login-way-wrap {
+      .login-way.active, .login-way:hover {
+        color: var(--mk-sys-color);
+      }
+    }
 
     .login-form {
-      float: right;
-      margin-top: 5%;
-      margin-right: 20%;
-      padding: 15px;
+      position: relative;
       background: #ffffff;
-      width: 300px;
+      width: 22vw;
+      min-width: 300px;
       border-radius: 5px;
+      overflow: hidden;
+      border: 1px solid #bfbfbf;
+      top: var(--mk-login-offset-top, 0px);
+      left: var(--mk-login-offset-left, 0px);
+      transition: all 0.2s;
+
+      .login-way-title {
+        font-size: 18px;
+        line-height: 45px;
+        display: flex;
+        padding-top: 10px;
+      }
+      .login-way-title::before, .login-way-title::after {
+        display: inline-block;
+        content: ' ';
+        height: 0.5px;
+        flex: 1;
+        background-color: rgba(0, 0, 0, 0.15);
+        position: relative;
+        top: 22px;
+      }
+      .scan-icon {
+        position: absolute;
+        right: 0px;
+        top: 0px;
+        font-size: 46px;
+        color: #000000;
+        line-height: 1;
+        transform: rotate(-45deg);
+        transform-origin: 0 0;
+        overflow: hidden;
+        padding-bottom: 10px;
+        cursor: pointer;
+        .anticon {
+          transform-origin: 0 0;
+          transform: rotate(45deg);
+        }
+      }
+      .login-ways {
+        padding: 0 1.6vw 1.5vw;
+        span {
+          color: #1890ff;
+          cursor: pointer;
+        }
+        span + span {
+          margin-left: 15px;
+        }
+      }
+      .login-ways.center {
+        text-align: center;
+      }
+      .login-way-title::before {
+        margin: 0 10px 0 1.6vw;
+      }
+      .login-way-title::after {
+        margin: 0 1.6vw 0 10px;
+      }
+      .form-item-wrap {
+        // padding: 0.6vw 1.6vw 1.6vw;
+        padding: 0.6vw 1.6vw 0vw;
+
+        .ant-select-auto-complete.ant-select .ant-select-selection--single {
+          height: calc(2vw + 5px);
+          min-height: 30px;
+        }
+
+        .ant-select-auto-complete.ant-select .ant-input:focus, .ant-select-auto-complete.ant-select .ant-input:hover {
+          border-color: var(--mk-sys-color);
+        }
+      }
 
       h4 {
-        font-size: 18px;
+        font-size: 20px;
         font-weight: bold;
         color: #0A95CB;
+        margin-bottom: 3vh;
+      }
+      .ant-form-item {
+        font-size: 16px;
+        margin-bottom: 3vh;
+        height: 40px;
+      }
+      .ant-form-item.vercode {
+        .ant-input-group {
+          border: 1px solid #d9d9d9;
+          border-radius: 4px;
+          .ant-input {
+            border: 0;
+            border-right: 1px solid #d9d9d9;
+          }
+          .ant-input-group-addon {
+            border: 0;
+          }
+        }
+      }
+      .btn-login {
+        margin-bottom: 3vh;
+        clear: both;
+        height: auto;
+      }
+      .register-line {
+        font-size: 14px;
+        margin-bottom: 10px;
+        height: 25px;
+        float: right;
+        .ant-form-item-control {
+          line-height: 25px;
+        }
+        .register {
+          color: #1890ff;
+          margin-right: 10px;
+        }
+        .forgot {
+          font-size: 14px;
+          color: #1890ff;
+        }
       }
       .minline {
-        margin-bottom: 10px;
+        display: inline-block;
+        margin-bottom: 3vh;
         margin-top: -10px;
+        height: 35px;
       }
-      button {
+      .minline.right {
+        float: right;
+        width: 100px;
+        margin-bottom: 2vh;
+        .ant-select-selection {
+          border: 0;
+          box-shadow: none;
+          .ant-select-selection-selected-value {
+            float: right;
+            margin-right: 10px;
+          }
+        }
+      }
+      .proline {
+        display: inline-block;
+        margin-bottom: 10px;
+        height: auto;
+        margin-top: calc(-3vh + 10px);
+        font-size: 13px;
+        .ant-form-item-children {
+          display: flex;
+          align-items: flex-start;
+          line-height: 1.5;
+          color: rgba(0, 0, 0, 0.5);
+
+          // .ant-checkbox-inner {
+          //   width: 15px;
+          //   height: 15px;
+          // }
+          input[type="checkbox"] {
+            width: 35px;
+            height: 22px;
+            top: -4px;
+            left: -4px;
+          }
+
+          a {
+            color: var(--mk-sys-color);
+          }
+        }
+      }
+      button.vercode {
+        border: 0;
+        color: var(--mk-sys-color);
+      }
+      button:not(.vercode) {
         width: 100%;
-        height: 40px;
-        line-height: 40px;
+        height: calc(2vw + 10px);
+        min-height: 30px;
+        line-height: 1;
       }
       .ant-dropdown-link {
         float: right;
         cursor: pointer;
         line-height: 20px;
         margin-top: 10px;
+        .anticon.anticon-down {
+          font-size: 16px;
+        }
       }
+      .ant-input-affix-wrapper {
+        font-size: 16px;
+      }
+      .ant-input {
+        font-size: 16px;
+        height: calc(2vw + 5px);
+        min-height: 30px;
+      }
+      .ant-form label {
+        font-size: 16px;
+      }
+      .ant-btn:not(.vercode) {
+        font-size: 18px;
+      }
+      .anticon-eye {
+        color: var(--mk-sys-color);
+      }
+    }
+    .login-sync-button {
+      position: absolute;
+      bottom: 10px;
+      left: 20px;
     }
   }
   .login-bottom {
     text-align: center;
-    color: #ffffff;
+    color: var(--mk-sys-font-color);
     padding-top: 20px;
-    p span.split {
-      margin-right: 15px;
+    p {
+      margin-bottom: 5px;
+      text-align: center;
+    }
+    a {
+      color: var(--mk-sys-font-color);
     }
   }
   .ant-btn-primary[disabled] {
     color: #fff;
-    background-color: #40a9ff;
-    border-color: #40a9ff;
+  }
+
+  .form-scan-wrap {
+    text-align: center;
+    line-height: 45px;
+    .qr-wrap {
+      position: relative;
+      width: 60%;
+      padding-top: 60%;
+      margin: 0 auto;
+  
+      .qrcode-box {
+        position: absolute;
+        top: 0;
+        left: 0;
+        right: 0;
+        bottom: 0;
+        width: auto!important;
+        height: auto!important;
+        canvas {
+          width: 100%!important;
+          height: 100%!important;
+        }
+      }
+      .qrcode-out {
+        position: absolute;
+        top: 0;
+        left: 0;
+        right: 0;
+        bottom: 0;
+        background: rgba(0, 0, 0, 0.7);
+        padding-top: 30%;
+        color: rgba(255, 255, 255, 0.7);
+        line-height: 1.5;
+        text-align: center;
+        .anticon-redo {
+          display: block;
+          font-size: 24px;
+          cursor: pointer;
+          color: #ffffff;
+        }
+      }
+    }
+
+    .qr-wrap + img {
+      width: 24px;
+      margin-right: 5px;
+      vertical-align: middle;
+    }
+  }
+}
+.mk-user-option {
+  .anticon-close-circle {
+    float: right;
+    opacity: 0;
+    transition: opacity 0.3s;
+    padding: 3px;
+  }
+}
+.mk-user-option:hover {
+  .anticon-close-circle {
+    opacity: 1;
+  }
+}
+.sync-cloud-application {
+  .ant-modal-body {
+    min-height: 176px;
+  }
+}
+.ant-message {
+  top: 50px;
+  z-index: 1080;
+}
+@media screen and (max-width: 500px) {
+  .login-container {
+    .login-middle {
+      justify-content: center;
+      padding-right: 0px;
+    }
   }
 }
\ No newline at end of file

--
Gitblit v1.8.0