﻿ 
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    body {
        background: linear-gradient(315deg, #0c2461 0%, #1e3799 25%, #4a69bd 50%, #6a89cc 75%, #82ccdd 100%);
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        padding-top: 32px; /* 为标题栏留出空间 */
    }
    
    /* 背景装饰元素 */
    .bg-element {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(2px);
        z-index: 0;
    }
    
    .element-1 {
        width: 300px;
        height: 300px;
        bottom: -150px;
        right: -150px;
    }
    
    .element-2 {
        width: 200px;
        height: 200px;
        top: 20%;
        left: 10%;
    }
    
    .element-3 {
        width: 150px;
        height: 150px;
        bottom: 30%;
        left: 20%;
    }
    
    .login-container {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 500px;
        padding: 30px;
        transform: translateY(-20px); /* 调整位置，适应标题栏 */
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    
    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #4a69bd, #82ccdd);
    }
    
    .logo {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .logo h1 {
        font-size: 28px;
        color: #fff;
        margin-bottom: 8px;
        font-weight: 600;
        letter-spacing: 1px;
    }
    
    .logo p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px;
    }
    
    .welcome-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .welcome-header h2 {
        color: #fff;
        font-size: 22px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .welcome-header h2 i {
        color: #4cd137;
        font-size: 24px;
    }
    
    .form-group {
        position: relative;
        margin-bottom: 25px;
    }
    
    .form-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
    }
    
    .form-control {
        width: 100%;
        padding: 14px 14px 14px 45px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        font-size: 16px;
        color: #fff;
        transition: all 0.3s ease;
        outline: none;
    }
    
    /* 覆盖自动填充样式 */
    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover, 
    .form-control:-webkit-autofill:focus, 
    .form-control:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
        -webkit-text-fill-color: #fff !important;
        transition: background-color 5000s ease-in-out 0s;
    }
    
    .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 2px rgba(74, 105, 189, 0.5);
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }





.login-btn {
    width: 60%;
    display: block; /* 关键属性 */
    margin: 10px auto 0; /* 上边距10px，水平自动，底部0 */
    padding: 14px;
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
    
    .login-btn:hover {
        background: linear-gradient(135deg, #1e3799, #4a69bd);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    .login-btn:active {
        transform: translateY(0);
    }
    
    .login-btn i {
        margin-right: 8px;
    }
 
    .footer {
        text-align: center;
        margin-top: 25px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
    }
    
    .footer a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .footer a:hover {
        color: white;
        text-decoration: underline;
    }
    
    @media (max-width: 480px) {
        .login-container {
            padding: 30px 20px;
            margin: 0 15px;
        }
        
        .logo h1 {
            font-size: 24px;
        }
        
        .welcome-header h2 {
            font-size: 20px;
        }
    }
    
    /* 动画效果 */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0px);
        }
    }
    
    .floating {
        animation: float 6s ease-in-out infinite;
    }
 

    /* 添加在原有样式之后 */
/* 登录类型容器 */
.login-type-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 登录类型标题样式 */
.login-type-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap; /* 防止文字换行 */
}

/* 登录类型选项容器 */
.login-type-options {
    display: flex;
    gap: 30px;
}

/* 其他原有样式保持不变 */
.login-type-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.login-type-label:hover {
    color: white;
}
 

 

.login-type-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.login-type-radio:checked + .custom-radio {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(74, 105, 189, 0.6);
}

.custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-type-radio:checked + .custom-radio::after {
    opacity: 1;
}

/* 记住账号样式 */
.remember-group {
    margin-bottom: 15px;
}

.remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.remember-label:hover {
    color: white;
}

.remember-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.remember-checkbox:checked + .custom-checkbox {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(74, 105, 189, 0.6);
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remember-checkbox:checked + .custom-checkbox::after {
    opacity: 1;
}

/* 微调按钮位置 */
.login-btn {
    margin-top: 15px; /* 增加上边距 */
}