﻿/* 基础布局 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 主容器样式 */
#login {
    flex: 1;
    width: 1200px;
    height: 100vh;
    margin-top: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
	margin: 0 auto;
}

/* 登录框样式 */
#box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 600px;
    position: relative;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表单容器 */
.login-form-container {
    padding: 35px 30px;
}

/* 标题样式 */
.title-container {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    color: #1e3c72;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    color: #6c757d;
    font-size: 15px;
    opacity: 0.8;
}

/* 表单组件 */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    padding-left: 45px;
    margin-bottom: 8px;
    color: #2a5298;
    font-weight: 500;
    font-size: 14px;
    display: block;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    z-index: 1;
}

.text-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    height: 45px;
    line-height: 21px;
    transition: all 0.3s ease;
}

.text-input:focus {
    background: #fff;
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
    outline: none;
}

/* 验证码组 */
.verify-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verify-group .text-input {
    flex: 0 0 110px;
}

.verify-group img {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 登录按钮 */
.btn-container {
    margin-top: 35px;
}

.login_btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.login_btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(30, 60, 114, 0.2);
}

/* 背景动画 */
.forest-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    overflow: hidden;
}

.night-sky {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10px 10px, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 100px 100px, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    background-size: 200px 200px;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
}

.moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    animation: moonGlow 8s ease-in-out infinite;
}

/* 版权信息 */
.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* 动画定义 */
@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 70px rgba(255, 255, 255, 0.35);
    }
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    #login {
        width: 100%;
        margin-top: 100px;
        padding: 20px;
    }
    
    #box {
        width: 100%;
        max-width: 400px;
        padding: 30px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}