/*
 * *Created by PoLeung
 * *Email 30930572@qq.com
 * *Create date 2026-04-19
 * *Copyright LockDataV
 * *Desc data visualization project based on Echarts5.0.
 */
@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
}

:root {
    --fresh-primary: #4CB8C4;
    --fresh-secondary: #51CF95;
    --fresh-light: #E6F7F5;
    --fresh-active: #2D9A9A;
    --fresh-tab: #36CFC9;
    --fresh-tab-light: #F0FFFC;
    --bg-color: #F9F5F0;
    --white: #ffffff;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #E5E7EB;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(to top, #f3f7f7 0%, #f9f5f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 登录盒子 */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.login-box {
    background: var(--white);
    width: 100%;
    max-width: 560px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(76, 184, 196, 0.08);
    padding: 40px 35px;
    overflow: hidden;
}

/* 标题 */
.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h2 {
    font-size: 24px;
    color: #2A3B47;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-title p {
    font-size: 14px;
    color: var(--text-muted);
}

/* 登录方式切换 */
.login-tab {
    display: flex;
    background: #f5f7f7;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-muted);
    transition: 0.2s;
}

.tab-item.active {
    background: var(--fresh-primary);
    color: #fff;
}

/* 表单 */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.layui-form-item {
    margin-bottom: 20px;
}

.layui-input {
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding-left: 15px;
    font-size: 14px;
}

.layui-input:focus {
    border-color: var(--fresh-primary) !important;
    box-shadow: 0 0 0 2px rgba(76, 184, 196, 0.1);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fresh-primary);
    font-size: 16px;
}

.input-icon .layui-input {
    padding-left: 45px;
}

/* 图片验证码 */
.captcha-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-img {
    height: 46px;
    width: 120px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* 短信验证码按钮 */
.code-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    background: var(--fresh-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.code-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    background: linear-gradient(135deg, var(--fresh-primary), var(--fresh-tab));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    opacity: 0.9;
}

/* 辅助链接 */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
}

.login-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.login-links a:hover {
    color: var(--fresh-primary);
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px 15px;
    font-size: 13px;
    color: #999;
    background: transparent;
}
