| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- <!DOCTYPE html>
- <html>
- <head>
- {include file="common/meta" /}
- <style type="text/css">
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
- background: linear-gradient(135deg, #52c234 0%, #0f9b8e 50%, #1e5f74 100%);
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- overflow: hidden;
- }
- /* 背景装饰元素 */
- body::before {
- content: '';
- position: absolute;
- width: 500px;
- height: 500px;
- background: rgba(255, 255, 255, 0.1);
- border-radius: 50%;
- top: -250px;
- right: -250px;
- animation: float 6s ease-in-out infinite;
- }
- body::after {
- content: '';
- position: absolute;
- width: 400px;
- height: 400px;
- background: rgba(255, 255, 255, 0.08);
- border-radius: 50%;
- bottom: -200px;
- left: -200px;
- animation: float 8s ease-in-out infinite reverse;
- }
- @keyframes float {
- 0%, 100% {
- transform: translateY(0) rotate(0deg);
- }
- 50% {
- transform: translateY(-20px) rotate(5deg);
- }
- }
- .container {
- width: 100%;
- max-width: 1200px;
- padding: 20px;
- position: relative;
- z-index: 1;
- }
- .login-wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 80vh;
- }
- .login-screen {
- max-width: 450px;
- width: 100%;
- padding: 0;
- margin: 0 auto;
- }
- .login-screen .well {
- background: rgba(255, 255, 255, 0.98);
- backdrop-filter: blur(10px);
- border-radius: 20px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
- border: 1px solid rgba(255, 255, 255, 0.3);
- overflow: hidden;
- padding: 0;
- animation: slideUp 0.6s ease-out;
- }
- @keyframes slideUp {
- from {
- opacity: 0;
- transform: translateY(30px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- @media (max-width: 767px) {
- .login-screen {
- padding: 0 20px;
- }
- }
- .login-head {
- background: linear-gradient(135deg, #52c234 0%, #0f9b8e 100%);
- padding: 50px 30px 80px;
- text-align: center;
- position: relative;
- overflow: hidden;
- }
- .login-head::before {
- content: '';
- position: absolute;
- width: 200%;
- height: 200%;
- background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
- top: -50%;
- left: -50%;
- animation: rotate 20s linear infinite;
- }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- .login-title {
- color: #fff;
- font-size: 32px;
- font-weight: 600;
- margin: 0;
- text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
- position: relative;
- z-index: 1;
- }
- .login-subtitle {
- color: rgba(255, 255, 255, 0.9);
- font-size: 14px;
- margin-top: 8px;
- position: relative;
- z-index: 1;
- }
- .profile-img-card {
- width: 90px;
- height: 90px;
- display: block;
- border-radius: 50%;
- margin: -45px auto 0;
- border: 5px solid #fff;
- box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
- background: linear-gradient(135deg, #52c234 0%, #0f9b8e 100%);
- position: relative;
- z-index: 10;
- }
- .profile-name-card {
- text-align: center;
- color: #333;
- font-size: 16px;
- margin-top: 15px;
- }
- .login-form {
- padding: 30px 40px 40px;
- position: relative;
- z-index: 99;
- }
- #login-form {
- margin-top: 25px;
- }
- #login-form .input-group {
- margin-bottom: 20px;
- position: relative;
- width: 100%;
- }
- #login-form .input-group-addon {
- position: absolute;
- left: 15px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 10;
- background: none;
- border: none;
- color: #52c234;
- font-size: 18px;
- }
- #login-form .form-control {
- width: 100%;
- height: 50px;
- border: 2px solid #e8f5e9;
- border-radius: 25px;
- padding-left: 50px;
- padding-right: 15px;
- font-size: 14px;
- transition: all 0.3s ease;
- background: #fff;
- color: #333;
- }
- #login-form .form-control:focus {
- border-color: #52c234;
- box-shadow: 0 0 0 3px rgba(82, 194, 52, 0.1);
- background: #fff;
- outline: none;
- }
- #login-form .form-control::placeholder {
- color: #b0bec5;
- }
- /* 验证码输入框特殊样式 */
- .captcha-wrapper {
- margin-bottom: 20px;
- }
- .captcha-input-row {
- display: flex;
- align-items: stretch;
- gap: 10px;
- }
- .captcha-input-box {
- flex: 1;
- position: relative;
- }
- .captcha-input-box .input-group-addon {
- position: absolute;
- left: 15px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 10;
- background: none;
- border: none;
- color: #52c234;
- font-size: 18px;
- }
- .captcha-input-box .form-control {
- width: 100%;
- height: 50px;
- border: 2px solid #e8f5e9;
- border-radius: 25px;
- padding-left: 50px;
- padding-right: 15px;
- font-size: 14px;
- transition: all 0.3s ease;
- background: #fff;
- color: #333;
- }
- .captcha-input-box .form-control:focus {
- border-color: #52c234;
- box-shadow: 0 0 0 3px rgba(82, 194, 52, 0.1);
- outline: none;
- }
- .captcha-image-box {
- width: 140px;
- height: 50px;
- border: 2px solid #e8f5e9;
- border-radius: 10px;
- overflow: hidden;
- cursor: pointer;
- transition: all 0.3s ease;
- background: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- }
- .captcha-image-box:hover {
- border-color: #52c234;
- box-shadow: 0 2px 8px rgba(82, 194, 52, 0.2);
- }
- .captcha-image-box img {
- display: block;
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .form-group.checkbox {
- margin: 20px 0;
- }
- .form-group.checkbox label {
- color: #666;
- font-size: 14px;
- cursor: pointer;
- display: flex;
- align-items: center;
- user-select: none;
- }
- .form-group.checkbox input[type="checkbox"] {
- width: 18px;
- height: 18px;
- margin-right: 8px;
- cursor: pointer;
- accent-color: #52c234;
- }
- .btn-login {
- width: 100%;
- height: 50px;
- background: linear-gradient(135deg, #52c234 0%, #0f9b8e 100%);
- border: none;
- border-radius: 25px;
- color: #fff;
- font-size: 16px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s ease;
- box-shadow: 0 4px 15px rgba(82, 194, 52, 0.3);
- position: relative;
- overflow: hidden;
- }
- .btn-login::before {
- content: '';
- position: absolute;
- top: 0;
- left: -100%;
- width: 100%;
- height: 100%;
- background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
- transition: left 0.5s ease;
- }
- .btn-login:hover {
- transform: translateY(-2px);
- box-shadow: 0 6px 20px rgba(82, 194, 52, 0.4);
- }
- .btn-login:hover::before {
- left: 100%;
- }
- .btn-login:active {
- transform: translateY(0);
- }
- #errtips {
- background: #ffebee;
- color: #c62828;
- padding: 12px 15px;
- border-radius: 10px;
- margin-bottom: 15px;
- font-size: 13px;
- border-left: 4px solid #c62828;
- }
- #errtips.hide {
- display: none;
- }
- /* 响应式优化 */
- @media (max-width: 576px) {
- .login-form {
- padding: 25px 25px 35px;
- }
- .login-title {
- font-size: 26px;
- }
- #login-form .form-control {
- height: 45px;
- font-size: 13px;
- }
- .btn-login {
- height: 45px;
- font-size: 15px;
- }
- }
- /* 加载动画 */
- .loading {
- pointer-events: none;
- opacity: 0.6;
- }
- .loading::after {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- width: 20px;
- height: 20px;
- margin: -10px 0 0 -10px;
- border: 2px solid #fff;
- border-top-color: transparent;
- border-radius: 50%;
- animation: spin 0.6s linear infinite;
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- </style>
- <!--@formatter:off-->
- {if $background}
- <style type="text/css">
- body{
- background-image: url('{$background|htmlentities}');
- }
- </style>
- {/if}
- <!--@formatter:on-->
- </head>
- <body>
- <div class="container">
- <div class="login-wrapper">
- <div class="login-screen">
- <div class="well">
- <div class="login-head">
- <h1 class="login-title">社区养老平台</h1>
- <p class="login-subtitle">Smart Elderly Care Management System</p>
- </div>
- <div class="login-form">
- <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png"/>
- <p id="profile-name" class="profile-name-card">欢迎登录</p>
- <form action="" method="post" id="login-form">
- <!--@AdminLoginFormBegin-->
- <div id="errtips" class="hide"></div>
- {:token()}
- <div class="input-group">
- <div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
- <input type="text" class="form-control" id="pd-form-username" placeholder="请输入用户名" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
- </div>
- <div class="input-group">
- <div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
- <input type="password" class="form-control" id="pd-form-password" placeholder="请输入密码" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
- </div>
- <!--@CaptchaBegin-->
- {if $Think.config.fastadmin.login_captcha}
- <div class="captcha-wrapper">
- <div class="captcha-input-row">
- <div class="captcha-input-box">
- <div class="input-group-addon"><span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span></div>
- <input type="text" name="captcha" class="form-control" placeholder="请输入验证码" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})" autocomplete="off"/>
- </div>
- <div class="captcha-image-box" onclick="var img=this.querySelector('img'); img.src='{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r='+Math.random();" title="点击刷新验证码">
- <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" alt="验证码"/>
- </div>
- </div>
- </div>
- {/if}
- <!--@CaptchaEnd-->
- {if $keeyloginhours>0}
- <div class="form-group checkbox">
- <label for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
- <input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
- {:__('Keep login')}
- </label>
- </div>
- {/if}
- <div class="form-group">
- <button type="submit" class="btn btn-login">{:__('Sign in')}</button>
- </div>
- <!--@AdminLoginFormEnd-->
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- {include file="common/script" /}
- </body>
- </html>
|