Initial commit (code only without large binaries)
This commit is contained in:
278
EdgeUser/web/views/@default/index/index.css
Normal file
278
EdgeUser/web/views/@default/index/index.css
Normal file
@@ -0,0 +1,278 @@
|
||||
:root {
|
||||
--primary-color: #0066ff;
|
||||
--hover-color: #0052cc;
|
||||
--bg-gradient-start: #0a192f;
|
||||
--bg-gradient-end: #112240;
|
||||
--text-main: #333333;
|
||||
--text-sub: #888888;
|
||||
--border-color: #e5e7eb;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body.login-page {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #1e3a8a 100%);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body.login-page > div {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.bg-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tech-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0.1;
|
||||
background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
background-position: 0 0, 20px 20px;
|
||||
}
|
||||
|
||||
.glow-circle {
|
||||
position: absolute;
|
||||
width: 800px;
|
||||
height: 800px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-shell {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
padding: 48px 40px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: var(--primary-color);
|
||||
border-radius: 6px;
|
||||
color: #ffffff;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.logo-image-wrap {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 6px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.logo-icon i.icon {
|
||||
margin: 0 !important;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 16px;
|
||||
color: var(--text-sub);
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-form .input-group {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.login-form .input-label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
color: var(--text-main);
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.login-form .input-field-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input .input-icon {
|
||||
color: #9ca3af;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
padding: 12px 16px 12px 42px;
|
||||
font-size: 15px !important;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
outline: none;
|
||||
color: var(--text-main);
|
||||
background: #f9fafb;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input::placeholder {
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input:focus {
|
||||
background: #ffffff;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input:focus-within .input-icon {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.remember-wrap {
|
||||
margin-top: -4px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.remember-wrap .ui.checkbox label {
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.submit-btn.ui.button.primary {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
height: 50px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: var(--primary-color);
|
||||
color: #ffffff;
|
||||
font-size: 16px !important;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.2);
|
||||
transition: background 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.submit-btn.ui.button.primary:hover {
|
||||
background: var(--hover-color);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.register-box {
|
||||
text-align: center;
|
||||
margin-top: 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.register-box a {
|
||||
color: #4183c4;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
color: #ccc !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
body.login-page {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
padding: 30px 18px;
|
||||
}
|
||||
}
|
||||
/* SweetAlert2 fallback on login page */
|
||||
body.login-page.swal2-height-auto {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
body.login-page .swal2-container {
|
||||
position: fixed !important;
|
||||
inset: 0 !important;
|
||||
z-index: 20000 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
padding: 0.625em !important;
|
||||
}
|
||||
|
||||
body.login-page .swal2-container.swal2-backdrop-show {
|
||||
background: rgba(0, 0, 0, 0.42) !important;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
1
EdgeUser/web/views/@default/index/index.css.map
Normal file
1
EdgeUser/web/views/@default/index/index.css.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA;EACI,eAAA;EACA,UAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;;AAGJ;EACI,eAAA;EACA,WAAA;EACA,QAAA;EACA,SAAA;EACA,kBAAA;EACA,iBAAA;;AANJ,IAQC;EACC,kBAAA;EACA,yBAAA;;AAVF,IAaC;EACC,gBAAA;EACA,iBAAA;EACA,gBAAA;EACA,mBAAA;EACA,UAAA;;AAlBF,IAqBC;EACC,iBAAA;EACA,cAAA;EACA,WAAA;;AAxBF,IA2BC;EACC,kBAAA;EACA,eAAA;;AAIF,mBAAqC;EACjC;IACI,UAAA;IACA,iBAAA;;;AAIR;EACC,WAAA","file":"index.css"}
|
||||
107
EdgeUser/web/views/@default/index/index.html
Normal file
107
EdgeUser/web/views/@default/index/index.html
Normal file
@@ -0,0 +1,107 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
{$if eq .faviconFileId 0}
|
||||
<link rel="shortcut icon" href="/images/favicon.png" />
|
||||
{$else}
|
||||
<link rel="shortcut icon" href="/ui/image/{$ .faviconFileId}" />
|
||||
{$end}
|
||||
<title>登录{$ htmlEncode .systemName}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
|
||||
{$TEA.VUE}
|
||||
{$TEA.SEMANTIC}
|
||||
<script type="text/javascript" src="/js/md5.min.js"></script>
|
||||
<script type="text/javascript" src="/js/utils.min.js"></script>
|
||||
<script type="text/javascript" src="/js/sweetalert2/dist/sweetalert2.all.min.js"></script>
|
||||
<script type="text/javascript" src="/js/components.js?v=1.0.0"></script>
|
||||
{$if not (eq .themeBackgroundColor "")}
|
||||
<style>
|
||||
.button.primary {
|
||||
background: #{$.themeBackgroundColor} !important;
|
||||
}
|
||||
</style>
|
||||
{$end}
|
||||
</head>
|
||||
|
||||
<body class="login-page">
|
||||
<div>
|
||||
<div class="bg-layer">
|
||||
<div class="tech-bg"></div>
|
||||
<div class="glow-circle"></div>
|
||||
</div>
|
||||
|
||||
<div class="login-shell">
|
||||
{$template "/menu"}
|
||||
|
||||
<div class="form-box">
|
||||
<div class="login-card">
|
||||
<div class="card-header">
|
||||
<div class="brand-logo">
|
||||
{$if gt .logoFileId 0}
|
||||
<span class="logo-image-wrap"><img class="logo-image" src="/ui/image/{$.logoFileId}" alt="logo"/></span>
|
||||
{$else}
|
||||
<span class="logo-icon"><i class="shield alternate icon"></i></span>
|
||||
{$end}
|
||||
<span class="logo-text">{$ htmlEncode .systemName}</span>
|
||||
</div>
|
||||
<p class="header-title">新一代 Web与APP 应用防护平台</p>
|
||||
</div>
|
||||
|
||||
<form method="post" class="ui form login-form" data-tea-action="$" data-tea-before="submitBefore" data-tea-done="submitDone" data-tea-success="submitSuccess" autocomplete="off">
|
||||
<csrf-token></csrf-token>
|
||||
<input type="hidden" name="password" v-model="passwordMd5"/>
|
||||
<input type="hidden" name="token" v-model="token"/>
|
||||
|
||||
<div class="ui field input-group">
|
||||
<label class="input-label">账号</label>
|
||||
<div class="input-field-wrapper">
|
||||
<div class="ui left icon input">
|
||||
<i class="ui user icon small input-icon"></i>
|
||||
<input type="text" name="username" v-model="username" :placeholder="usernamePlaceholder" maxlength="200" ref="usernameRef" @input="changeUsername"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui field input-group">
|
||||
<label class="input-label">密码</label>
|
||||
<div class="input-field-wrapper">
|
||||
<div class="ui left icon input">
|
||||
<i class="ui lock icon small input-icon"></i>
|
||||
<input type="password" v-model="password" placeholder="请输入密码" maxlength="200" @input="changePassword()" ref="passwordRef"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui field input-group" v-show="showOTP">
|
||||
<label class="input-label">安全验证</label>
|
||||
<div class="input-field-wrapper">
|
||||
<div class="ui left icon input">
|
||||
<i class="ui barcode icon input-icon"></i>
|
||||
<input type="text" name="otpCode" placeholder="请输入 OTP 动态码" maxlength="6"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui field remember-wrap" v-if="false">
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" name="remember" value="1" checked="checked"/>
|
||||
<label>在这台电脑上记住登录(14天)</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="ui button primary fluid submit-btn" type="submit" v-if="!isSubmitting">登录</button>
|
||||
<button class="ui button primary fluid disabled submit-btn" type="submit" disabled="disabled" v-if="isSubmitting">登录中...</button>
|
||||
|
||||
<div v-if="canRegister" class="register-box">
|
||||
<a href="/register">注册新用户<span v-if="!canResetPassword"> »</span></a><span v-if="canResetPassword"> <span class="disabled">|</span> <a href="/account/reset">找回密码</a></span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
83
EdgeUser/web/views/@default/index/index.js
Normal file
83
EdgeUser/web/views/@default/index/index.js
Normal file
@@ -0,0 +1,83 @@
|
||||
Tea.context(function () {
|
||||
this.username = "";
|
||||
this.password = "";
|
||||
this.passwordMd5 = "";
|
||||
this.encodedFrom = window.encodeURIComponent(this.from);
|
||||
|
||||
this.showOTP = false;
|
||||
this.isSubmitting = false;
|
||||
|
||||
this.usernamePlaceholder = "\u8bf7\u8f93\u5165\u7528\u6237\u540d";
|
||||
let loginMethods = [];
|
||||
if (this.emailCanLogin) {
|
||||
loginMethods.push("\u90ae\u7bb1");
|
||||
}
|
||||
if (this.mobileCanLogin) {
|
||||
loginMethods.push("\u624b\u673a\u53f7\u7801");
|
||||
}
|
||||
if (loginMethods.length > 0) {
|
||||
this.usernamePlaceholder += "/" + loginMethods.join("/");
|
||||
}
|
||||
|
||||
this.refreshPlaceholders = function () {
|
||||
let usernameInput = document.querySelector("form input[name='username']");
|
||||
if (usernameInput != null) {
|
||||
usernameInput.setAttribute("placeholder", this.usernamePlaceholder);
|
||||
}
|
||||
|
||||
let passwordInput = document.querySelector("form input[type='password']");
|
||||
if (passwordInput != null) {
|
||||
passwordInput.setAttribute("placeholder", "\u8bf7\u8f93\u5165\u5bc6\u7801");
|
||||
}
|
||||
|
||||
let otpInput = document.querySelector("form input[name='otpCode']");
|
||||
if (otpInput != null) {
|
||||
otpInput.setAttribute("placeholder", "\u8bf7\u8f93\u5165 OTP \u52a8\u6001\u7801");
|
||||
}
|
||||
};
|
||||
|
||||
this.$delay(function () {
|
||||
this.$find("form input[name='username']").focus();
|
||||
this.changePassword();
|
||||
this.refreshPlaceholders();
|
||||
setTimeout(() => this.refreshPlaceholders(), 200);
|
||||
});
|
||||
|
||||
this.changeUsername = function () {
|
||||
this.$post("/checkOTP")
|
||||
.params({
|
||||
username: this.username
|
||||
})
|
||||
.success(function (resp) {
|
||||
this.showOTP = resp.data.requireOTP;
|
||||
this.$delay(function () {
|
||||
this.refreshPlaceholders();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.changePassword = function () {
|
||||
this.passwordMd5 = md5(this.password.trim());
|
||||
};
|
||||
|
||||
this.moreOptionsVisible = false;
|
||||
this.showMoreOptions = function () {
|
||||
this.moreOptionsVisible = !this.moreOptionsVisible;
|
||||
};
|
||||
|
||||
this.submitBefore = function () {
|
||||
this.isSubmitting = true;
|
||||
};
|
||||
|
||||
this.submitDone = function () {
|
||||
this.isSubmitting = false;
|
||||
};
|
||||
|
||||
this.submitSuccess = function () {
|
||||
if (this.from.length == 0) {
|
||||
window.location = "/dashboard";
|
||||
} else {
|
||||
window.location = this.from;
|
||||
}
|
||||
};
|
||||
});
|
||||
277
EdgeUser/web/views/@default/index/index.less
Normal file
277
EdgeUser/web/views/@default/index/index.less
Normal file
@@ -0,0 +1,277 @@
|
||||
:root {
|
||||
--primary-color: #0066ff;
|
||||
--hover-color: #0052cc;
|
||||
--bg-gradient-start: #0a192f;
|
||||
--bg-gradient-end: #112240;
|
||||
--text-main: #333333;
|
||||
--text-sub: #888888;
|
||||
--border-color: #e5e7eb;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body.login-page {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, #1e3a8a 100%);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body.login-page > div {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.bg-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tech-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0.1;
|
||||
background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
background-position: 0 0, 20px 20px;
|
||||
}
|
||||
|
||||
.glow-circle {
|
||||
position: absolute;
|
||||
width: 800px;
|
||||
height: 800px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-shell {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
padding: 48px 40px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: var(--primary-color);
|
||||
border-radius: 6px;
|
||||
color: #ffffff;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.logo-image-wrap {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 6px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.logo-icon i.icon {
|
||||
margin: 0 !important;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--text-main);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 16px;
|
||||
color: var(--text-sub);
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-form .input-group {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.login-form .input-label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
color: var(--text-main);
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.login-form .input-field-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input .input-icon {
|
||||
color: #9ca3af;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
padding: 12px 16px 12px 42px;
|
||||
font-size: 15px !important;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
outline: none;
|
||||
color: var(--text-main);
|
||||
background: #f9fafb;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input::placeholder {
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input input:focus {
|
||||
background: #ffffff;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
|
||||
}
|
||||
|
||||
.login-form .ui.left.icon.input:focus-within .input-icon {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.remember-wrap {
|
||||
margin-top: -4px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.remember-wrap .ui.checkbox label {
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.submit-btn.ui.button.primary {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
height: 50px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: var(--primary-color);
|
||||
color: #ffffff;
|
||||
font-size: 16px !important;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.2);
|
||||
transition: background 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.submit-btn.ui.button.primary:hover {
|
||||
background: var(--hover-color);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.register-box {
|
||||
text-align: center;
|
||||
margin-top: 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.register-box a {
|
||||
color: #4183c4;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
color: #ccc !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
body.login-page {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
padding: 30px 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* SweetAlert2 fallback on login page */
|
||||
body.login-page.swal2-height-auto {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
body.login-page .swal2-container {
|
||||
position: fixed !important;
|
||||
inset: 0 !important;
|
||||
z-index: 20000 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
padding: 0.625em !important;
|
||||
}
|
||||
|
||||
body.login-page .swal2-container.swal2-backdrop-show {
|
||||
background: rgba(0, 0, 0, 0.42) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user