
/* 页面整体样式 - 绿色渐变背景 */
body {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 50%, #58D68D 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* 添加装饰性背景元素 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(39, 174, 96, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(88, 214, 141, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 主标题样式 - 加粗且个性化 */
.main-title {
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-title h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #c50c0c 0%, #c50202 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.main-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #C8E6C9 100%);
    border-radius: 2px;
}

.main-title .subtitle {
    font-size: 1.6rem;
    color: #E8F5E8;
    margin-top: 15px;
    font-weight: 500;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

/* 登录区域样式 */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(39, 174, 96, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-form h3 {
    text-align: center;
    margin: 0 0 35px 0;
    color: #2C3E50;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.login-form h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 31%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    border-radius: 2px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative; /* 添加相对定位 */
}
/* 确保用户名和密码输入框完全一致 */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: calc(100% - 40px) !important; /* 精确计算宽度 */
    min-width: 0;
    max-width: 100%;
    padding: 16px 20px;
    border: 2px solid #E8F5E9;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #F9FDF9;
    box-sizing: border-box;
    font-family: inherit;
    display: block;
    margin: 0; /* 清除默认边距 */
    outline: none;
    color: #2C3E50;
    font-weight: 400;
    letter-spacing: 0.5px;
    height: 54px; /* 固定高度 */
    border: 2px solid #97aea3;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #27AE60;
    background: white;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #90A4AE;
    font-weight: 400;
}
.form-group label {
    font-weight: 600;
    color: #34495E;
    font-size: 1rem;
    margin-left: 5px;
}

/* 确保用户名和密码输入框宽度完全相等 */
.login-form input {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding: 16px 20px;
    border: 2px solid #E8F5E9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #F9FDF9;
    box-sizing: border-box;
    font-family: inherit;
    display: block; /* 确保块级显示 */
}

.login-form input:focus {
    outline: none;
    border-color: #27AE60;
    background: white;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.login-form input::placeholder {
    color: #90A4AE;
}

/* 登录按钮样式 - 水平布局 */
.login-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.controls-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* margin-top: 10px; */
    flex-wrap: wrap;
}
/* 记住登录状态复选框样式 */
.login-button-container input[type="checkbox"] {
    max-width: 18px;
    height: 18px;
    accent-color: #27AE60;
    cursor: pointer;
    margin-right: 8px;
    /* vertical-align: middle; */
}

.login-button-container input[type="checkbox"]:hover {
    accent-color: #2ECC71;
}

/* 记住登录状态标签样式 */
.login-button-container label {
    font-size: 16px;
    color: #34495E;
    cursor: pointer;
    font-weight: 500;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.login-button-container label:hover {
    color: #27AE60;
}

/* 登录按钮样式 */
.login-form button {
    width: 200px !important; /* 设置固定宽度，水平布局下更合理 */
    padding: 16px;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* 复选框容器样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.login-form button::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;
}

.login-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:active {
    transform: translateY(-1px);
}

/* 欢迎信息区域样式 */
.welcome-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(39, 174, 96, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: fit-content;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #2ECC71 0%, #58D68D 100%);
}

.welcome-message {
    text-align: center;
}

.welcome-message h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #070707;
    font-weight: 700;
    background: linear-gradient(135deg, #2C3E50 0%, #27AE60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    font-size: 1.15rem;
    color: #626262;
    line-height: 1.7;
    margin-bottom:-10px;
    margin-top:0;
    text-align: left;
}

.features-list {
    margin-top: -30px;
    text-align: left;
}

.features-list h4 {
    color: #2C3E50;
    margin-bottom: -10px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 3px 0;
    color: #6b7178;
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 1.2rem;
    background: #E8F5E9;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .main-title h1 {
        font-size: 2.5rem;
    }
    
    .login-container, .welcome-container {
        padding: 35px;
    }
    
    .login-form button {
        width: 80% !important; /* 移动端按钮宽度适当增大 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .login-container, .welcome-container {
        padding: 25px;
    }
    
    .main-title h1 {
        font-size: 2rem;
    }
    
    .main-title .subtitle {
        font-size: 1.1rem;
    }
    
    .login-form button {
        width: 90% !important; /* 手机端按钮宽度更大 */
    }
}
