登录页面改造
This commit is contained in:
@@ -105,6 +105,8 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.Data["systemName"] = uiConfig.AdminSystemName
|
this.Data["systemName"] = uiConfig.AdminSystemName
|
||||||
|
this.Data["logoFileId"] = uiConfig.LogoFileId
|
||||||
|
this.Data["productName"] = uiConfig.ProductName
|
||||||
this.Data["showVersion"] = uiConfig.ShowVersion
|
this.Data["showVersion"] = uiConfig.ShowVersion
|
||||||
if len(uiConfig.Version) > 0 {
|
if len(uiConfig.Version) > 0 {
|
||||||
this.Data["version"] = uiConfig.Version
|
this.Data["version"] = uiConfig.Version
|
||||||
|
|||||||
@@ -1,38 +1,234 @@
|
|||||||
.form-box {
|
:root {
|
||||||
position: fixed;
|
--primary-color: #0066ff;
|
||||||
top: 2em;
|
--hover-color: #0052cc;
|
||||||
bottom: 0;
|
--bg-gradient-start: #0a192f;
|
||||||
left: 0;
|
--bg-gradient-end: #112240;
|
||||||
right: 0;
|
--text-main: #333333;
|
||||||
|
--text-sub: #888888;
|
||||||
|
--border-color: #e5e7eb;
|
||||||
}
|
}
|
||||||
form {
|
|
||||||
position: fixed;
|
html,
|
||||||
width: 21em;
|
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: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10em;
|
transform: translate(-50%, -50%);
|
||||||
margin-top: -16em;
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
form .header {
|
|
||||||
|
.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;
|
text-align: center;
|
||||||
font-size: 1em !important;
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
form p {
|
|
||||||
font-size: 0.8em;
|
.brand-logo {
|
||||||
margin-top: 0.3em;
|
display: inline-flex;
|
||||||
margin-bottom: 0;
|
align-items: center;
|
||||||
font-weight: normal;
|
gap: 10px;
|
||||||
padding: 0;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
form .comment {
|
|
||||||
margin-top: 0.5em;
|
.logo-icon {
|
||||||
padding: 0.5em;
|
width: 36px;
|
||||||
color: gray;
|
height: 36px;
|
||||||
|
background: var(--primary-color);
|
||||||
|
border-radius: 6px;
|
||||||
|
color: #ffffff;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 512px) {
|
|
||||||
form {
|
.logo-image-wrap {
|
||||||
width: 80%;
|
width: 36px;
|
||||||
margin-left: -40%;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
.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);
|
||||||
|
}
|
||||||
|
|
||||||
|
@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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*# sourceMappingURL=index.css.map */
|
/*# sourceMappingURL=index.css.map */
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
{$else}
|
{$else}
|
||||||
<link rel="shortcut icon" href="/ui/image/{$ .faviconFileId}"/>
|
<link rel="shortcut icon" href="/ui/image/{$ .faviconFileId}"/>
|
||||||
{$end}
|
{$end}
|
||||||
<title>登录{$ htmlEncode .systemName}</title>
|
<title>登录{$ htmlEncode .systemName}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
|
||||||
{$TEA.VUE}
|
{$TEA.VUE}
|
||||||
{$TEA.SEMANTIC}
|
{$TEA.SEMANTIC}
|
||||||
@@ -16,48 +16,61 @@
|
|||||||
<script type="text/javascript" src="/js/sweetalert2/dist/sweetalert2.all.min.js"></script>
|
<script type="text/javascript" src="/js/sweetalert2/dist/sweetalert2.all.min.js"></script>
|
||||||
<script type="text/javascript" src="/js/components.js"></script>
|
<script type="text/javascript" src="/js/components.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body style="background-image: url(/images/bg.jpg);width: 100% !important;height: 100% !important;background-size: cover !important;">
|
<body class="login-page">
|
||||||
<div>
|
<div>
|
||||||
|
<div class="bg-layer">
|
||||||
|
<div class="tech-bg"></div>
|
||||||
|
<div class="glow-circle"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="login-shell">
|
||||||
{$template "/menu"}
|
{$template "/menu"}
|
||||||
|
|
||||||
<div class="form-box">
|
<div class="form-box">
|
||||||
<form method="post" class="ui form" data-tea-action="$" data-tea-before="submitBefore" data-tea-done="submitDone" data-tea-success="submitSuccess" autocomplete="off">
|
<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>
|
<csrf-token></csrf-token>
|
||||||
<input type="hidden" name="password" v-model="passwordMd5"/>
|
<input type="hidden" name="password" v-model="passwordMd5"/>
|
||||||
<input type="hidden" name="token" v-model="token"/>
|
<input type="hidden" name="token" v-model="token"/>
|
||||||
<div class="ui segment stacked">
|
|
||||||
<div class="ui header">
|
<div class="ui field input-group">
|
||||||
登录{$ htmlEncode .systemName}
|
<label class="input-label">账号</label>
|
||||||
</div>
|
<div class="input-field-wrapper">
|
||||||
<div class="ui field">
|
|
||||||
<div class="ui left icon input">
|
<div class="ui left icon input">
|
||||||
<i class="ui user icon small"></i>
|
<i class="ui user icon small input-icon"></i>
|
||||||
<input type="text" name="username" v-model="username" placeholder="请输入用户名" maxlength="200" ref="usernameRef" @input="changeUsername"/>
|
<input type="text" name="username" v-model="username" placeholder="请输入账号" maxlength="200" ref="usernameRef" @input="changeUsername"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui field">
|
|
||||||
<div class="ui left icon input">
|
|
||||||
<i class="ui lock icon small"></i>
|
|
||||||
<input type="password" v-model="password" placeholder="请输入密码" maxlength="200" @input="changePassword()" ref="passwordRef"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="ui field" v-if="rememberLogin">
|
|
||||||
<a href="" @click.prevent="showMoreOptions()">更多选项 <i class="icon angle" :class="{down:!moreOptionsVisible, up:moreOptionsVisible}"></i> </a>
|
|
||||||
</div>
|
|
||||||
<div class="ui field" v-if="rememberLogin" v-show="moreOptionsVisible">
|
|
||||||
<div class="ui checkbox">
|
|
||||||
<input type="checkbox" name="remember" value="1" checked="checked"/>
|
|
||||||
<label>在这个电脑上记住登录(14天)</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="ui button primary fluid" type="submit" v-if="!isSubmitting">登录</button>
|
<div class="ui field input-group">
|
||||||
<button class="ui button primary fluid disabled" type="submit" v-if="isSubmitting">登录中...</button>
|
<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>
|
||||||
|
|
||||||
|
<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>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -11,9 +11,23 @@ Tea.context(function () {
|
|||||||
|
|
||||||
this.isSubmitting = false
|
this.isSubmitting = false
|
||||||
|
|
||||||
|
this.refreshPlaceholders = function () {
|
||||||
|
let usernameInput = document.querySelector("form input[name='username']")
|
||||||
|
if (usernameInput != null) {
|
||||||
|
usernameInput.setAttribute("placeholder", "\u8bf7\u8f93\u5165\u8d26\u53f7")
|
||||||
|
}
|
||||||
|
let passwordInput = document.querySelector("form input[type='password']")
|
||||||
|
if (passwordInput != null) {
|
||||||
|
passwordInput.setAttribute("placeholder", "\u8bf7\u8f93\u5165\u5bc6\u7801")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$delay(function () {
|
this.$delay(function () {
|
||||||
this.$find("form input[name='username']").focus()
|
this.$find("form input[name='username']").focus()
|
||||||
this.changePassword()
|
this.changePassword()
|
||||||
|
this.refreshPlaceholders()
|
||||||
|
// Some UI scripts mutate placeholders after mount; enforce once more.
|
||||||
|
setTimeout(() => this.refreshPlaceholders(), 200)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.changeUsername = function () {
|
this.changeUsername = function () {
|
||||||
|
|||||||
@@ -1,42 +1,233 @@
|
|||||||
.form-box {
|
:root {
|
||||||
position: fixed;
|
--primary-color: #0066ff;
|
||||||
top: 2em;
|
--hover-color: #0052cc;
|
||||||
bottom: 0;
|
--bg-gradient-start: #0a192f;
|
||||||
left: 0;
|
--bg-gradient-end: #112240;
|
||||||
right: 0;
|
--text-main: #333333;
|
||||||
|
--text-sub: #888888;
|
||||||
|
--border-color: #e5e7eb;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
html,
|
||||||
position: fixed;
|
body {
|
||||||
width: 21em;
|
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: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10em;
|
transform: translate(-50%, -50%);
|
||||||
margin-top: -16em;
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.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;
|
text-align: center;
|
||||||
font-size: 1em !important;
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
.brand-logo {
|
||||||
font-size: 0.8em;
|
display: inline-flex;
|
||||||
margin-top: 0.3em;
|
align-items: center;
|
||||||
margin-bottom: 0;
|
gap: 10px;
|
||||||
font-weight: normal;
|
margin-bottom: 12px;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.logo-icon {
|
||||||
margin-top: 0.5em;
|
width: 36px;
|
||||||
padding: 0.5em;
|
height: 36px;
|
||||||
color: gray;
|
background: var(--primary-color);
|
||||||
}
|
border-radius: 6px;
|
||||||
|
color: #ffffff;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 512px) {
|
.logo-image-wrap {
|
||||||
form {
|
width: 36px;
|
||||||
width: 80%;
|
height: 36px;
|
||||||
margin-left: -40%;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
.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);
|
||||||
|
}
|
||||||
|
|
||||||
|
@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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user