* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 修复SweetAlert2的body class问题 */
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
    overflow: hidden !important;
}

body.swal2-height-auto {
    height: auto !important;
}

/* 确保在没有弹窗时恢复正常状态 */
body:not(.swal2-shown) {
    overflow: visible !important;
    height: 100vh !important;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #3399ff;
    clip-path: circle(20% at 100% 0);
}

.login-container {
    position: relative;
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 40px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
    z-index: 10;
    overflow: hidden;
    animation: fadeIn .8s ease-out;
}

.login-header h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input {
    width: 100% !important;
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    outline: 0 !important;
    transition: all .3s ease !important;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5) !important;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #3399ff;
    font-size: 16px;
    pointer-events: none;
    transition: all .3s ease;
}

.form-group input:focus+label,
.form-group input:valid+label {
    top: -20px;
    left: 15px;
    font-size: 12px;
    background: #3399ff;
    padding: 2px 10px;
    color: #fff;
    border-radius: 20px;
    transform: scale(0.9);
    opacity: 0;
    animation: labelRise 0.3s ease-out forwards;
}

@-webkit-keyframes labelRise {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px) scale(1);
        transform: translateY(10px) scale(1);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0) scale(0.9);
        transform: translateY(0) scale(0.9);
    }
}

@keyframes labelRise {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px) scale(1);
        transform: translateY(10px) scale(1);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0) scale(0.9);
        transform: translateY(0) scale(0.9);
    }
}



#captcha {
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #3399ff;
    border: 0;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.6);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #3399ff;
    text-decoration: none;
    transition: all .3s ease;
}

.auth-links a:hover {
    color: #fff;
    text-decoration: underline;
}


@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 第三方登录样式 */
.third-party-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 20px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-login-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.social-btn i {
    font-size: 16px;
}

/* 聚合登录按钮样式 */
.social-btn-aggregate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.social-btn-aggregate:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 微信登录按钮样式 */
.social-btn-wechat,
.social-btn-wx {
    background: linear-gradient(135deg, #1AAD19 0%, #00C800 100%);
    border-color: #1AAD19;
}

.social-btn-wechat:hover,
.social-btn-wx:hover {
    background: linear-gradient(135deg, #169917 0%, #00B000 100%);
    box-shadow: 0 5px 15px rgba(26, 173, 25, 0.4);
}

/* 支付宝登录按钮样式 */
.social-btn-alipay {
    background: linear-gradient(135deg, #1677FF 0%, #0958d9 100%);
    border-color: #1677FF;
}

.social-btn-alipay:hover {
    background: linear-gradient(135deg, #0958d9 0%, #003eb3 100%);
    box-shadow: 0 5px 15px rgba(22, 119, 255, 0.4);
}

/* QQ登录按钮样式 */
.social-btn-qq {
    background: linear-gradient(135deg, #12B7F5 0%, #0099CC 100%);
    border-color: #12B7F5;
}

.social-btn-qq:hover {
    background: linear-gradient(135deg, #0099CC 0%, #007399 100%);
    box-shadow: 0 5px 15px rgba(18, 183, 245, 0.4);
}

/* 新浪微博登录按钮样式 */
.social-btn-weibo {
    background: linear-gradient(135deg, #E6162D 0%, #C41E3A 100%);
    border-color: #E6162D;
}

.social-btn-weibo:hover {
    background: linear-gradient(135deg, #C41E3A 0%, #A01729 100%);
    box-shadow: 0 5px 15px rgba(230, 22, 45, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .social-login-buttons {
        gap: 10px;
    }

    .social-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .social-btn i {
        font-size: 14px;
    }
}

#username,
#password,
#email,
#mobile,
#verification_code,
#password_confirmation,
#invitation_code_input,
#code,
#newPassword {
    width: 16rem;
    padding: 0.8rem;
    padding-left: 3rem;
    outline: none;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    margin: 5px;
}