﻿﻿ 
    * {
        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: 10px; /* 为标题栏留出空间 */
    }
    
    /* 背景装饰元素 */
    .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;
        z-index: 20;
    }
    
    /* ===== 核心修复：强制所有输入框不溢出 ===== */
    .form-control {
        display: block;
        width: 100%;
        max-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;
        box-sizing: border-box; /* 确保内边距包含在宽度内 */
    }
    
    /* 覆盖自动填充样式（修正过大阴影导致的视觉溢出） */
    .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 30px 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);
    }

    /* ===== 下拉选择框：与输入框完全一致，右内边距适配箭头 ===== */
    select.form-control {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.7)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 35px; /* 足够容纳箭头，但不会过大溢出 */
        cursor: pointer;
    }
    select.form-control option {
        background: #1e3799;
        color: #fff;
    }

    .login-btn {
        width: 60%;
        display: block;
        margin: 10px auto 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: none;
        font-weight:bold;
    }
    
    @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;
    }

    /* ===== 注册切换链接的立体小按钮效果 ===== */
    .switch-link a {
        display: inline-block;
        padding: 6px 18px;
        background: linear-gradient(135deg, #4a69bd, #4f0c0c);
        color: #fff;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        border: none;
        cursor: pointer;
    }
    .switch-link a:hover {
        background: linear-gradient(135deg, #4f0c0c, #4a69bd);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        color: #fff;
        text-decoration: none;
    }
    .switch-link a:active {
        transform: translateY(0px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }