.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

h2 {
    text-align: center;
    color: #1D2129;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.auth-tabs-top {
    display: flex;
    width: 100%;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.tab-btn-top {
    flex: 1;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-btn-top.active {
    color: #FF6B6B;
    border-bottom: 3px solid #FF6B6B;
}

.login-type-tabs {
    display: flex;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.login-type-btn {
    flex: 1;
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-type-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.required {
    color: #FF6B6B;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 0.6rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    font-size: 0.95rem;
    color: #374151;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.form-tip {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.4rem;
    line-height: 1.5;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.tip-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.6;
}

.tip-text i {
    color: #FF6B6B;
    margin-right: 0.3rem;
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert.show .custom-alert-content {
    transform: scale(1);
}

.custom-alert-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.custom-alert-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D2129;
    margin: 0;
}

.custom-alert-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.alert-icon.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.alert-icon.error {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

#alertMessage {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.custom-alert-footer {
    display: flex;
    justify-content: center;
}

.btn-confirm {
    width: 100%;
    max-width: 200px;
    padding: 0.85rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 扫码登录样式 */
.qrcode-login-container {
    text-align: center;
    padding: 1rem 0;
}

.qrcode-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 1rem;
    border: 2px dashed #e5e7eb;
}

.qrcode-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
}

.qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 0.9rem;
}

.qrcode-loading i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FF6B6B;
}

.qrcode-status {
    font-size: 0.9rem;
    color: #4B5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.qrcode-status i {
    color: #10B981;
    margin-right: 0.3rem;
}

/* 注册二维码样式 */
.qrcode-register-container {
    text-align: center;
    padding: 1rem 0;
}

.qrcode-register-container .qrcode-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 1rem;
    border: 2px dashed #e5e7eb;
}

.qrcode-register-container .qrcode-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
}

.qrcode-register-container .qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 0.9rem;
}

.qrcode-register-container .qrcode-loading i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FF6B6B;
}

.qrcode-register-container .qrcode-status {
    font-size: 0.9rem;
    color: #4B5563;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.qrcode-register-container .form-tip {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.4rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .tab-btn-top,
    .login-type-btn {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .form-group input {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .custom-alert-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    .custom-alert-header h4 {
        font-size: 1.1rem;
    }

    .alert-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    #alertMessage {
        font-size: 0.9rem;
    }

    .btn-confirm {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}