* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:url(../img/login-background.jpg) no-repeat center fixed;
    background-size: cover;
    /* 使用模糊和深色叠加层，确保文字可读性 */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(46, 139, 87, 0.2),
    rgba(0, 0, 0, 0.7)
    );
}

.login-container {
    position: relative;
    width: 400px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 60%;
    background: linear-gradient(45deg, transparent, rgba(11, 137, 64, 0.2), rgba(12, 170, 79, 0.4));
    transform: rotate(-5deg);
    z-index: 0;
}

.login-box {
    position: relative;
    z-index: 1;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e8b57, #1f6e45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4);
}

.logo-img img {
    width: 50px;
    height: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.logo p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #0caa4f;
    box-shadow: 0 0 0 2px rgba(12, 170, 79, 0.2);
    background-color: #fff;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.input-group .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.input-group .toggle-password:hover {
    color: #0caa4f;
}

/* 验证码输入组样式 */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.captcha-input {
    flex: 1;
    position: relative;
}

.captcha-input input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.captcha-input input:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.captcha-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.captcha-img:hover {
    transform: scale(1.05);
}

.captcha-img img {
    height: 100%;
    border-radius: 6px;
    width: 100%;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.remember-forgot input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #0caa4f;
    cursor: pointer;
}

.remember-forgot a {
    color: #0caa4f;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0caa4f, #08833c);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(12, 170, 79, 0.4);
}

.login-btn:hover {
    background: linear-gradient(135deg, #08833c, #06692f);
    box-shadow: 0 6px 15px rgba(12, 170, 79, 0.5);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    margin-top: 25px;
    color: #888;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }
}